tvm
|
Runtime-match the value to the struct info. More...
#include <expr.h>
Public Member Functions | |
TVM_DECLARE_FINAL_OBJECT_INFO (MatchCastNode, BindingNode) | |
![]() | |
TVM_DECLARE_BASE_OBJECT_INFO (BindingNode, Object) | |
Static Public Member Functions | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
Public Attributes | |
Expr | value |
The input value to match cast. More... | |
StructInfo | struct_info |
The struct info pattern to match to. More... | |
![]() | |
Span | span |
Var | var |
The return variable to bound to. More... | |
Static Public Attributes | |
static constexpr const char * | _type_key = "relax.expr.MatchCast" |
![]() | |
static constexpr const char * | _type_key = "relax.expr.Binding" |
static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode |
Runtime-match the value to the struct info.
This operation does runtime check, populates the un-defined symbolic shape vars and vars in struct_info in first occurance, and insert equality assertions in other cases.
|
inlinestatic |
tvm::relax::MatchCastNode::TVM_DECLARE_FINAL_OBJECT_INFO | ( | MatchCastNode | , |
BindingNode | |||
) |
|
staticconstexpr |
StructInfo tvm::relax::MatchCastNode::struct_info |
The struct info pattern to match to.
Expr tvm::relax::MatchCastNode::value |
The input value to match cast.