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

The variable class for all Relax bindings. More...

#include <expr.h>

Inheritance diagram for tvm::relax::VarNode:
Collaboration diagram for tvm::relax::VarNode:

Public Member Functions

const String & name_hint () const
 
bool SEqual (const VarNode *other, ffi::TypedFunction< bool(AnyView, AnyView, bool, AnyView)> equal) const
 
uint64_t SHash (uint64_t init_hash, ffi::TypedFunction< uint64_t(AnyView, uint64_t, bool)> hash) const
 
 TVM_DECLARE_BASE_OBJECT_INFO (VarNode, LeafExprNode)
 
- Public Member Functions inherited from tvm::relax::LeafExprNode
 TVM_DECLARE_BASE_OBJECT_INFO (LeafExprNode, ExprNode)
 
- Public Member Functions inherited from tvm::RelaxExprNode
 TVM_DECLARE_BASE_OBJECT_INFO (RelaxExprNode, BaseExprNode)
 
- Public Member Functions inherited from tvm::BaseExprNode
 TVM_DECLARE_BASE_OBJECT_INFO (BaseExprNode, Object)
 

Static Public Member Functions

static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::RelaxExprNode
static void RegisterReflection ()
 
- Static Public Member Functions inherited from tvm::BaseExprNode
static void RegisterReflection ()
 

Public Attributes

Id vid
 The identifier of the variable, which is used for comparing stable equality across transformations. More...
 
- Public Attributes inherited from tvm::RelaxExprNode
Optional< ObjectRef > struct_info_ = Optional<ObjectRef>()
 Stores the result of structure information of the expression that encapsulate both static shape and runtime information such as shape. More...
 
- Public Attributes inherited from tvm::BaseExprNode
Span span
 Span that points to the original source code. Reserved debug information. More...
 

Static Public Attributes

static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind = kTVMFFISEqHashKindDAGNode
 
static constexpr const char * _type_key = "relax.expr.Var"
 
static constexpr const uint32_t _type_child_slots = 1
 
- Static Public Attributes inherited from tvm::relax::LeafExprNode
static constexpr const char * _type_key = "relax.expr.LeafExpr"
 
static constexpr const uint32_t _type_child_slots = 7
 
- Static Public Attributes inherited from tvm::RelaxExprNode
static constexpr const char * _type_key = "ir.RelaxExpr"
 
static constexpr const uint32_t _type_child_slots = 22
 
- Static Public Attributes inherited from tvm::BaseExprNode
static constexpr const char * _type_key = "ir.BaseExpr"
 
static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode
 
static constexpr const uint32_t _type_child_slots = 64
 

Detailed Description

The variable class for all Relax bindings.

Member Function Documentation

◆ name_hint()

const String& tvm::relax::VarNode::name_hint ( ) const
inline
Returns
The name hint of the variable

◆ RegisterReflection()

static void tvm::relax::VarNode::RegisterReflection ( )
inlinestatic

◆ SEqual()

bool tvm::relax::VarNode::SEqual ( const VarNode other,
ffi::TypedFunction< bool(AnyView, AnyView, bool, AnyView)>  equal 
) const
inline

◆ SHash()

uint64_t tvm::relax::VarNode::SHash ( uint64_t  init_hash,
ffi::TypedFunction< uint64_t(AnyView, uint64_t, bool)>  hash 
) const
inline

◆ TVM_DECLARE_BASE_OBJECT_INFO()

tvm::relax::VarNode::TVM_DECLARE_BASE_OBJECT_INFO ( VarNode  ,
LeafExprNode   
)

Member Data Documentation

◆ _type_child_slots

constexpr const uint32_t tvm::relax::VarNode::_type_child_slots = 1
staticconstexpr

◆ _type_key

constexpr const char* tvm::relax::VarNode::_type_key = "relax.expr.Var"
staticconstexpr

◆ _type_s_eq_hash_kind

constexpr TVMFFISEqHashKind tvm::relax::VarNode::_type_s_eq_hash_kind = kTVMFFISEqHashKindDAGNode
staticconstexpr

◆ vid

Id tvm::relax::VarNode::vid

The identifier of the variable, which is used for comparing stable equality across transformations.


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