25 #ifndef TVM_RELAY_OP_STRATEGY_H_ 26 #define TVM_RELAY_OP_STRATEGY_H_ 54 v->Visit(
"name", &name);
55 v->Visit(
"plevel", &plevel);
58 static constexpr
const char*
_type_key =
"relay.OpImplementation";
75 const Type& out_type);
101 v->Visit(
"condition", &condition);
102 v->Visit(
"implementations", &implementations);
105 static constexpr
const char*
_type_key =
"relay.OpSpecialization";
137 static constexpr
const char*
_type_key =
"relay.OpStrategy";
161 #endif // TVM_RELAY_OP_STRATEGY_H_ Operator implementation that includes compute and schedule function.
Definition: op_strategy.h:42
Global schedule container For operations and all the operations they depend on. The schedule per Oper...
Definition: schedule.h:318
void VisitAttrs(tvm::AttrVisitor *v)
Definition: op_strategy.h:100
Managed reference to BaseAttrsNode.
Definition: attrs.h:190
Relay expression language.
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
Operator strategy class.
Definition: op_strategy.h:144
Operator strategy to choose implementation.
Definition: op_strategy.h:130
Operator specialization class.
Definition: op_strategy.h:112
The Expr and related elements in DataFlow construction.
Array< OpSpecialization > specializations
List of operator specializations.
Definition: op_strategy.h:133
Specialized condition to enable op specialization.
Definition: schedule.h:953
base class of all object containers.
Definition: object.h:167
Specialized implementations for operators under certain conditions.
Definition: op_strategy.h:92
#define TVM_DEFINE_MUTABLE_OBJECT_REF_METHODS(TypeName, ParentType, ObjectName)
Definition: object.h:744
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
FTVMCompute fcompute
Compute function.
Definition: op_strategy.h:45
String name
Name of the implementation.
Definition: op_strategy.h:49
static constexpr const char * _type_key
Definition: op_strategy.h:58
Array, container representing a contiguous sequence of ObjectRefs.
Definition: array.h:289
void VisitAttrs(tvm::AttrVisitor *v)
Definition: op_strategy.h:53
TVM_DECLARE_FINAL_OBJECT_INFO(OpImplementationNode, Object)
Reference to string objects.
Definition: string.h:98
#define TVM_DEFINE_OBJECT_REF_METHODS(TypeName, ParentType, ObjectName)
Definition: object.h:713
Managed reference class to TargetNode.
Definition: target.h:183
Base class of all object reference.
Definition: object.h:511
FTVMSchedule fschedule
Schedule function.
Definition: op_strategy.h:47
Compilation target object.
te::SpecializedCondition condition
Condition to enable the specialization. Could be undefined to represent generic case.
Definition: op_strategy.h:98
Operator implementation class.
Definition: op_strategy.h:65
Managed reference to TypeNode.
Definition: type.h:93
void VisitAttrs(tvm::AttrVisitor *v)
Definition: op_strategy.h:135
Base node of all non-primitive expressions.
Definition: expr.h:361
int plevel
Priority level.
Definition: op_strategy.h:51
Array< OpImplementation > implementations
List of implementations.
Definition: op_strategy.h:95