24 #ifndef TVM_RELAX_TRANSFORM_H_
25 #define TVM_RELAX_TRANSFORM_H_
396 v->Visit(
"name", &
name);
399 v->Visit(
"check", &
check);
403 static constexpr
const char*
_type_key =
"relax.transform.FusionPattern";
460 static constexpr
const char*
_type_key =
"relax.transform.PatternCheckContext";
500 int target_index = 0);
523 bool annotate_codegen =
false,
Visitor class to get the attributes of an AST/IR node. The content is going to be called for each fie...
Definition: reflection.h:52
Boolean constant.
Definition: expr.h:597
Managed reference class to IRModuleNode.
Definition: module.h:366
Managed reference to RelayExprNode.
Definition: expr.h:442
Managed reference to VDeviceNode.
Definition: global_info.h:95
Managed reference to dataflow patterns.
Definition: dataflow_pattern.h:101
The input of FusionPattern::check.
Definition: transform.h:421
void VisitAttrs(tvm::AttrVisitor *v)
Definition: transform.h:452
Map< Expr, Var > value_to_bound_var
Map from value to its bound variable. It doesn't have variables after the matched expression.
Definition: transform.h:450
Map< Var, Expr > matched_bindings
Map from variable to its value. It contains variables from bindings that is being fused by FuseOpsByP...
Definition: transform.h:438
Map< String, Expr > annotated_expr
A map which contains all expressions matched by the sub patterns in FusionPattern::annotation_pattern...
Definition: transform.h:432
TVM_DECLARE_FINAL_OBJECT_INFO(PatternCheckContextNode, Object)
static constexpr const char * _type_key
Definition: transform.h:460
Map< Var, Array< Var > > var_usages
A map mapping variable definitions to a set of uses. It has all variables used in the function.
Definition: transform.h:444
Expr matched_expr
The expression that's matched with the FusionPattern::pattern.
Definition: transform.h:426
Definition: transform.h:464
PatternCheckContext(Expr matched_expr, Map< String, Expr > annotated_expr, Map< Var, Expr > matched_bindings, Map< Var, Array< Var >> var_usages, Map< Expr, Var > value_to_bound_var)
TVM_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS(PatternCheckContext, ObjectRef, PatternCheckContextNode)
Array, container representing a contiguous sequence of ObjectRefs.
Definition: array.h:289
Runtime primitive data type.
Definition: data_type.h:43
Map container of NodeRef->NodeRef in DSL graph. Map implements copy on write semantics,...
Definition: map.h:1271
Base class of all object reference.
Definition: object.h:519
base class of all object containers.
Definition: object.h:171
Optional container that to represent to a Nullable variant of T.
Definition: optional.h:51
Reference to string objects.
Definition: string.h:98
Please refer to TypedPackedFunc<R(Args..)>.
Definition: packed_func.h:63
PassContext that is used to configure the pass behavior.
Definition: transform.h:182
Defines a remapping of buffer indices.
Box< bool > Bool
Boxed version of C++ bool.
Definition: boxed_primitive.h:121
constexpr const char * axis_separators
Marks the physical axis separators.
Definition: stmt.h:1458
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
constexpr runtime::NullOptType NullOpt
Definition: optional.h:169
A pattern language for matching dataflow properties.