tvm
|
Structure information about function. More...
#include <struct_info.h>
Public Member Functions | |
bool | IsOpaque () const |
TVM_DECLARE_FINAL_OBJECT_INFO (FuncStructInfoNode, StructInfoNode) | |
![]() | |
TVM_DECLARE_BASE_OBJECT_INFO (StructInfoNode, Object) | |
Static Public Member Functions | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
Public Attributes | |
Optional< Array< StructInfo > > | params |
The parameter struct info of the function. More... | |
StructInfo | ret |
The struct info of the function's return value. More... | |
Optional< StructInfoDeriveFunc > | derive_func |
Derivation function of opaque functions that may take any number of parameters. More... | |
bool | purity |
Whether the function is pure. More... | |
![]() | |
Span | span |
Span that points to the original source code. Reserved debug information. More... | |
Static Public Attributes | |
static constexpr const char * | _type_key = "relax.FuncStructInfo" |
![]() | |
static constexpr TVMFFISEqHashKind | _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode |
static constexpr const char * | _type_key = "ir.StructInfo" |
static constexpr const uint32_t | _type_child_slots = 7 |
Structure information about function.
This data structure contains enough information for us to do best-effort structure information deduction.
|
inline |
|
inlinestatic |
tvm::relax::FuncStructInfoNode::TVM_DECLARE_FINAL_OBJECT_INFO | ( | FuncStructInfoNode | , |
StructInfoNode | |||
) |
|
staticconstexpr |
Optional<StructInfoDeriveFunc> tvm::relax::FuncStructInfoNode::derive_func |
Derivation function of opaque functions that may take any number of parameters.
Optional<Array<StructInfo> > tvm::relax::FuncStructInfoNode::params |
The parameter struct info of the function.
bool tvm::relax::FuncStructInfoNode::purity |
Whether the function is pure.
StructInfo tvm::relax::FuncStructInfoNode::ret |
The struct info of the function's return value.