MCPcopy Index your code
hub / github.com/apache/tvm / emit_if

Method emit_if

python/tvm/relax/exec_builder.py:144–147  ·  view source on GitHub ↗

emit an if instruction

(self, cond, false_offset)

Source from the content-addressed store, hash-verified

142 _ffi_api.ExecBuilderEmitGoto(self, pc_offset) # type: ignore
143
144 def emit_if(self, cond, false_offset):
145 """emit an if instruction"""
146 self._check_scope()
147 _ffi_api.ExecBuilderEmitIf(self, cond, false_offset) # type: ignore
148
149 def get(self) -> VMExecutable:
150 """return the executable"""

Callers 1

test_vm_ifFunction · 0.95

Calls 1

_check_scopeMethod · 0.95

Tested by 1

test_vm_ifFunction · 0.76