A pattern to match a Relax Function.
More...
#include <dataflow_pattern.h>
|
static constexpr const char * | _type_key = "relax.dpl.FunctionPattern" |
|
static constexpr const char * | _type_key = "DFPatternNode" |
|
static constexpr const uint32_t | _type_child_slots = 21 |
|
A pattern to match a Relax Function.
- See also
- Function
-
FunctionPattern
◆ RegisterReflection()
static void tvm::relax::FunctionPatternNode::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ TVM_DECLARE_FINAL_OBJECT_INFO()
◆ _type_key
constexpr const char* tvm::relax::FunctionPatternNode::_type_key = "relax.dpl.FunctionPattern" |
|
staticconstexpr |
◆ body
DFPattern tvm::relax::FunctionPatternNode::body |
- Note
- Note that in Relax, the function body is a SeqExpr which contains 1) SeqExprNode::blocks, which is a list of blocks of statements; and 2) SeqExprNode::body, which is an Expr that can be anything. FunctionPattern only matches the body of the function (writing patterns to statements is tricky). The body of the function
◆ params
tvm::Array<DFPattern> tvm::relax::FunctionPatternNode::params |
The parameters of the function
The documentation for this class was generated from the following file: