tvm
Public Member Functions | 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_FFI_DECLARE_OBJECT_INFO_FINAL ("relax.vm.Closure", VMClosureObj, Object)
 

Public Attributes

ffi::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...
 

Detailed Description

An object representing a vm closure.

Member Function Documentation

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::runtime::vm::VMClosureObj::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "relax.vm.Closure"  ,
VMClosureObj  ,
Object   
)

Member Data Documentation

◆ func_name

ffi::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: