19 #ifndef TVM_META_SCHEDULE_TUNE_CONTEXT_H_ 20 #define TVM_META_SCHEDULE_TUNE_CONTEXT_H_ 39 namespace meta_schedule {
41 class TaskSchedulerNode;
42 class MeasureCallback;
68 v->Visit(
"mod", &mod);
69 v->Visit(
"target", &target);
70 v->Visit(
"space_generator", &space_generator);
71 v->Visit(
"search_strategy", &search_strategy);
72 v->Visit(
"task_name", &task_name);
73 v->Visit(
"num_threads", &num_threads);
74 v->Visit(
"rand_state", &rand_state);
87 static constexpr
const char*
_type_key =
"meta_schedule.TuneContext";
119 #endif // TVM_META_SCHEDULE_TUNE_CONTEXT_H_ Optional< Target > target
The target to be tuned for.
Definition: tune_context.h:53
Runtime Optional container types.
#define TVM_DEFINE_MUTABLE_NOTNULLABLE_OBJECT_REF_METHODS(TypeName, ParentType, ObjectName)
Definition: object.h:758
void Initialize()
Initialize members that needs initialization with tune context.
Runtime String container types.
Random number generator. It provides a generic interface consistent with std::uniform_random_bit_gene...
IRModule that holds the functions and type definitions.
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
TRandState rand_state
The random state.
Definition: tune_context.h:63
support::LinearCongruentialEngine::TRandState TRandState
Definition: tune_context.h:97
Optional< String > task_name
The name of the tuning task.
Definition: tune_context.h:59
base class of all object containers.
Definition: object.h:167
Optional< SpaceGenerator > space_generator
The design space generator.
Definition: tune_context.h:55
Optional< IRModule > mod
The workload to be tuned.
Definition: tune_context.h:51
Managed reference to TuneContextNode.
Definition: tune_context.h:95
int64_t TRandState
Definition: random_engine.h:46
Runtime Array container types.
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
int num_threads
The number of threads to be used.
Definition: tune_context.h:61
Optional< SearchStrategy > search_strategy
The search strategy.
Definition: tune_context.h:57
The auto tuning context.
Definition: tune_context.h:46
TVM_DECLARE_FINAL_OBJECT_INFO(TuneContextNode, Object)
void VisitAttrs(tvm::AttrVisitor *v)
Definition: tune_context.h:67
PackedFunc logger
The tuning task's logging function. t.
Definition: tune_context.h:65
Base class of all object reference.
Definition: object.h:511
A managed object in the TVM runtime.
static constexpr const char * _type_key
Definition: tune_context.h:87
Compilation target object.
Runtime Map container types.
Packed function is a type-erased function. The arguments are passed by packed format.
Definition: packed_func.h:138
Optional container that to represent to a Nullable variant of T.
Definition: optional.h:51
Reflection and serialization of compiler IR/AST nodes.
support::LinearCongruentialEngine::TRandState TRandState
Definition: tune_context.h:48
TuneContext Clone() const
Clone the tune context.
Type-erased function used across TVM API.