tvm
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
tvm::relax::FunctionPatternNode Class Reference

A pattern to match a Relax Function. More...

#include <dataflow_pattern.h>

Inheritance diagram for tvm::relax::FunctionPatternNode:
Collaboration diagram for tvm::relax::FunctionPatternNode:

Public Member Functions

 TVM_DECLARE_FINAL_OBJECT_INFO (FunctionPatternNode, DFPatternNode)
 
- Public Member Functions inherited from tvm::relax::DFPatternNode
 TVM_DECLARE_BASE_OBJECT_INFO (DFPatternNode, Object)
 

Static Public Member Functions

static void RegisterReflection ()
 

Public Attributes

tvm::Array< DFPatternparams
 
DFPattern body
 

Static Public Attributes

static constexpr const char * _type_key = "relax.dpl.FunctionPattern"
 
- Static Public Attributes inherited from tvm::relax::DFPatternNode
static constexpr const char * _type_key = "DFPatternNode"
 
static constexpr const uint32_t _type_child_slots = 21
 

Detailed Description

A pattern to match a Relax Function.

See also
Function
FunctionPattern

Member Function Documentation

◆ RegisterReflection()

static void tvm::relax::FunctionPatternNode::RegisterReflection ( )
inlinestatic

◆ TVM_DECLARE_FINAL_OBJECT_INFO()

tvm::relax::FunctionPatternNode::TVM_DECLARE_FINAL_OBJECT_INFO ( FunctionPatternNode  ,
DFPatternNode   
)

Member Data Documentation

◆ _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: