A pattern to match a Relax Function.
More...
#include <dataflow_pattern.h>
A pattern to match a Relax Function.
- See also
- Function
-
FunctionPattern
◆ RegisterReflection()
static void tvm::relax::FunctionPatternNode::RegisterReflection |
( |
| ) |
|
|
inlinestatic |
◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()
◆ 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::ffi::Array<DFPattern> tvm::relax::FunctionPatternNode::params |
The parameters of the function
The documentation for this class was generated from the following file: