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

Function _run_module

tests/python/relax/test_frontend_tflite.py:4069–4078  ·  view source on GitHub ↗
(mod, *inputs)

Source from the content-addressed store, hash-verified

4067
4068
4069def _run_module(mod, *inputs):
4070 tgt = tvm.target.Target("c")
4071 ex = tvm.compile(mod, tgt)
4072 vm = relax.VirtualMachine(ex, tvm.cpu())
4073 vm.set_input("main", *inputs)
4074 vm.invoke_stateful("main")
4075 outputs = vm.get_outputs("main")
4076 if hasattr(outputs, "numpy"):
4077 return outputs.numpy()
4078 return tuple(output.numpy() for output in outputs)
4079
4080
4081def _run_no_input_module(mod):

Callers 3

_run_no_input_moduleFunction · 0.85

Calls 7

set_inputMethod · 0.95
invoke_statefulMethod · 0.95
get_outputsMethod · 0.95
tupleFunction · 0.85
numpyMethod · 0.80
compileMethod · 0.45
cpuMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…