tvm
|
The input of FusionPattern::check. More...
#include <transform.h>
Public Member Functions | |
TVM_DECLARE_FINAL_OBJECT_INFO (PatternCheckContextNode, Object) | |
Static Public Member Functions | |
static void | RegisterReflection () |
Public Attributes | |
Expr | matched_expr |
The expression that's matched with the FusionPattern::pattern. More... | |
Map< String, Expr > | annotated_expr |
A map which contains all expressions matched by the sub patterns in FusionPattern::annotation_patterns. More... | |
Map< Var, Expr > | matched_bindings |
Map from variable to its value. It contains variables from bindings that is being fused by FuseOpsByPattern. More... | |
Map< Var, Array< Var > > | var_usages |
A map mapping variable definitions to a set of uses. It has all variables used in the function. More... | |
Map< Expr, Var > | value_to_bound_var |
Map from value to its bound variable. It doesn't have variables after the matched expression. More... | |
Static Public Attributes | |
static constexpr const char * | _type_key = "relax.transform.PatternCheckContext" |
The input of FusionPattern::check.
|
inlinestatic |
tvm::relax::transform::PatternCheckContextNode::TVM_DECLARE_FINAL_OBJECT_INFO | ( | PatternCheckContextNode | , |
Object | |||
) |
|
staticconstexpr |
Map<String, Expr> tvm::relax::transform::PatternCheckContextNode::annotated_expr |
A map which contains all expressions matched by the sub patterns in FusionPattern::annotation_patterns.
Map from variable to its value. It contains variables from bindings that is being fused by FuseOpsByPattern.
Expr tvm::relax::transform::PatternCheckContextNode::matched_expr |
The expression that's matched with the FusionPattern::pattern.
Map from value to its bound variable. It doesn't have variables after the matched expression.
A map mapping variable definitions to a set of uses. It has all variables used in the function.