A Relax function.
More...
#include <expr.h>
|
| TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("relax.expr.Function", FunctionNode, BaseFuncNode) |
|
template<typename TObjectRef > |
ffi::Optional< TObjectRef > | GetAttr (const std::string &attr_key, ffi::Optional< TObjectRef > default_value=std::nullopt) const |
| Get a function attribute. More...
|
|
template<typename TObjectRef > |
ffi::Optional< TObjectRef > | GetAttr (const std::string &attr_key, TObjectRef default_value) const |
|
bool | HasNonzeroAttr (const std::string &attr_key) const |
| Check whether the function has an non-zero integer attr. More...
|
|
LinkageType | GetLinkageType () const |
| Get the type of the linkage. More...
|
|
| TVM_FFI_DECLARE_OBJECT_INFO ("ir.BaseFunc", BaseFuncNode, RelaxExprNode) |
|
| TVM_FFI_DECLARE_OBJECT_INFO ("ir.RelaxExpr", RelaxExprNode, BaseExprNode) |
|
| TVM_FFI_DECLARE_OBJECT_INFO ("ir.BaseExpr", BaseExprNode, Object) |
|
◆ RegisterReflection()
static void tvm::relax::FunctionNode::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()
◆ _type_s_eq_hash_kind
constexpr TVMFFISEqHashKind tvm::relax::FunctionNode::_type_s_eq_hash_kind = kTVMFFISEqHashKindDAGNode |
|
staticconstexpr |
◆ body
SeqExpr tvm::relax::FunctionNode::body |
The body of the function.
◆ is_pure
bool tvm::relax::FunctionNode::is_pure |
Whether the function is annotated as pure or not.
◆ params
ffi::Array<Var> tvm::relax::FunctionNode::params |
The parameters to the function.
◆ ret_struct_info
StructInfo tvm::relax::FunctionNode::ret_struct_info |
The return type of the function.
The documentation for this class was generated from the following file: