An object representing a vm closure.
More...
#include <vm.h>
|
String | func_name |
| The function name. The function could be any function object that is compatible to the VM runtime. More...
|
|
ffi::Function | impl |
| The implementation of the Closure. More...
|
|
|
static constexpr const char * | _type_key = "relax.vm.Closure" |
|
An object representing a vm closure.
◆ TVM_DECLARE_FINAL_OBJECT_INFO()
tvm::runtime::vm::VMClosureObj::TVM_DECLARE_FINAL_OBJECT_INFO |
( |
VMClosureObj |
, |
|
|
Object |
|
|
) |
| |
◆ _type_key
constexpr const char* tvm::runtime::vm::VMClosureObj::_type_key = "relax.vm.Closure" |
|
staticconstexpr |
◆ func_name
String tvm::runtime::vm::VMClosureObj::func_name |
The function name. The function could be any function object that is compatible to the VM runtime.
◆ impl
ffi::Function tvm::runtime::vm::VMClosureObj::impl |
The implementation of the Closure.
- Note
- This function takes context pointer(VirtualMachine*) as the first argument. The rest of arguments follows the same arguments as the normal function call.
The documentation for this class was generated from the following file:
- include/tvm/runtime/vm/vm.h