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)
| 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, |
no outgoing calls