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

Method invoke_stateful

python/tvm/runtime/vm.py:278–292  ·  view source on GitHub ↗

Call the named function from the VM module using the arguments set using `set_input`. It is an error to call `invoke_stateful` without using `set_input` first (even if it's to set 0 inputs); conversely, if `set_input` has been called, it is an error to call the funct

(self, func_name: str)

Source from the content-addressed store, hash-verified

276 self._set_input(func_name, *cargs)
277
278 def invoke_stateful(self, func_name: str) -> None:
279 """
280 Call the named function from the VM module using the arguments set using `set_input`.
281 It is an error to call `invoke_stateful` without using `set_input` first
282 (even if it's to set 0 inputs); conversely, if `set_input` has been called,
283 it is an error to call the function without using `invoke_stateful`.
284
285 The results of the call can be obtained by calling `get_outputs`.
286
287 Parameters
288 ----------
289 func_name: str
290 The name of the function to call.
291 """
292 self._invoke_stateful(func_name)
293
294 def get_outputs(self, func_name: str) -> tvm.Object | tuple[Any]:
295 """

Callers 15

check_correctnessFunction · 0.95
get_vm_resFunction · 0.95
check_correctnessFunction · 0.95
run_in_tvmFunction · 0.95
test_nmsFunction · 0.95
test_nms_iou_suppressionFunction · 0.95
test_nms_max_boxes_limitFunction · 0.95
test_nms_score_thresholdFunction · 0.95

Calls

no outgoing calls

Tested by 15

check_correctnessFunction · 0.76
get_vm_resFunction · 0.76
check_correctnessFunction · 0.76
run_in_tvmFunction · 0.76
test_nmsFunction · 0.76
test_nms_iou_suppressionFunction · 0.76
test_nms_max_boxes_limitFunction · 0.76
test_nms_score_thresholdFunction · 0.76