tvm
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
tvm::runtime::vm::VMClosureObj Class Reference

An object representing a vm closure. More...

#include <vm.h>

Inheritance diagram for tvm::runtime::vm::VMClosureObj:
Collaboration diagram for tvm::runtime::vm::VMClosureObj:

Public Member Functions

 TVM_DECLARE_FINAL_OBJECT_INFO (VMClosureObj, Object)
 

Public Attributes

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 Public Attributes

static constexpr const char * _type_key = "relax.vm.Closure"
 

Detailed Description

An object representing a vm closure.

Member Function Documentation

◆ TVM_DECLARE_FINAL_OBJECT_INFO()

tvm::runtime::vm::VMClosureObj::TVM_DECLARE_FINAL_OBJECT_INFO ( VMClosureObj  ,
Object   
)

Member Data Documentation

◆ _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: