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

Method invoke_closure

python/tvm/runtime/vm.py:126–142  ·  view source on GitHub ↗

Invoke a closure. Parameters ---------- closure : Object The VMClosure Object. args : list[tvm.runtime.Tensor] or list[np.ndarray] The arguments to the closure. Returns ------- result : Object The output.

(self, closure: Object, *args: Any)

Source from the content-addressed store, hash-verified

124 return self.module[key]
125
126 def invoke_closure(self, closure: Object, *args: Any) -> Object:
127 """Invoke a closure.
128
129 Parameters
130 ----------
131 closure : Object
132 The VMClosure Object.
133
134 args : list[tvm.runtime.Tensor] or list[np.ndarray]
135 The arguments to the closure.
136
137 Returns
138 -------
139 result : Object
140 The output.
141 """
142 return self._invoke_closure(closure, *args)
143
144 def save_function(
145 self,

Callers 3

test_vm_invoke_closureFunction · 0.95
invoke_closureFunction · 0.80

Calls

no outgoing calls

Tested by 2

test_vm_invoke_closureFunction · 0.76