tvm
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
tvm::EnvFuncObj Class Reference

A serializable function backed by TVM's global environment. More...

#include <env_func.h>

Inheritance diagram for tvm::EnvFuncObj:
Collaboration diagram for tvm::EnvFuncObj:

Public Member Functions

 EnvFuncObj ()
 constructor
 
 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("ir.EnvFunc", EnvFuncObj, ffi::Object)
 

Static Public Member Functions

static void RegisterReflection ()
 

Public Attributes

ffi::String name
 Unique name of the global function.
 
ffi::Function func
 The internal packed function.
 

Static Public Attributes

static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode
 

Detailed Description

A serializable function backed by TVM's global environment.

This is a wrapper to enable serializable global ffi::Function. An EnvFunc is saved by its name in the global registry under the assumption that the same function is registered during load.

See also
EnvFunc

Constructor & Destructor Documentation

◆ EnvFuncObj()

tvm::EnvFuncObj::EnvFuncObj ( )
inline

constructor

Member Function Documentation

◆ RegisterReflection()

static void tvm::EnvFuncObj::RegisterReflection ( )
inlinestatic

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::EnvFuncObj::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "ir.EnvFunc"  ,
EnvFuncObj  ,
ffi::Object   
)

Member Data Documentation

◆ _type_s_eq_hash_kind

constexpr TVMFFISEqHashKind tvm::EnvFuncObj::_type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode
staticconstexpr

◆ func

ffi::Function tvm::EnvFuncObj::func

The internal packed function.

◆ name

ffi::String tvm::EnvFuncObj::name

Unique name of the global function.


The documentation for this class was generated from the following file: