tvm
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
tvm::EnvFuncNode Class Reference

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

#include <env_func.h>

Inheritance diagram for tvm::EnvFuncNode:
Collaboration diagram for tvm::EnvFuncNode:

Public Member Functions

 EnvFuncNode ()
 constructor More...
 
 TVM_DECLARE_FINAL_OBJECT_INFO (EnvFuncNode, Object)
 

Static Public Member Functions

static void RegisterReflection ()
 

Public Attributes

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

Static Public Attributes

static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode
 
static constexpr const char * _type_key = "ir.EnvFunc"
 

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

◆ EnvFuncNode()

tvm::EnvFuncNode::EnvFuncNode ( )
inline

constructor

Member Function Documentation

◆ RegisterReflection()

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

◆ TVM_DECLARE_FINAL_OBJECT_INFO()

tvm::EnvFuncNode::TVM_DECLARE_FINAL_OBJECT_INFO ( EnvFuncNode  ,
Object   
)

Member Data Documentation

◆ _type_key

constexpr const char* tvm::EnvFuncNode::_type_key = "ir.EnvFunc"
staticconstexpr

◆ _type_s_eq_hash_kind

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

◆ func

ffi::Function tvm::EnvFuncNode::func

The internal packed function.

◆ name

String tvm::EnvFuncNode::name

Unique name of the global function.


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