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);
87 static constexpr
const char*
_type_key =
"meta_schedule.TuneContext";
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
The auto tuning context.
Definition: tune_context.h:46
void VisitAttrs(tvm::AttrVisitor *v)
Definition: tune_context.h:67
static constexpr const char * _type_key
Definition: tune_context.h:87
TRandState rand_state
The random state.
Definition: tune_context.h:63
Optional< IRModule > mod
The workload to be tuned.
Definition: tune_context.h:51
Optional< String > task_name
The name of the tuning task.
Definition: tune_context.h:59
TuneContext Clone() const
Clone the tune context.
Optional< SpaceGenerator > space_generator
The design space generator.
Definition: tune_context.h:55
void Initialize()
Initialize members that needs initialization with tune context.
TVM_DECLARE_FINAL_OBJECT_INFO(TuneContextNode, Object)
support::LinearCongruentialEngine::TRandState TRandState
Definition: tune_context.h:48
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
PackedFunc logger
The tuning task's logging function. t.
Definition: tune_context.h:65
Optional< Target > target
The target to be tuned for.
Definition: tune_context.h:53
Managed reference to TuneContextNode.
Definition: tune_context.h:95
TVM_DEFINE_MUTABLE_NOTNULLABLE_OBJECT_REF_METHODS(TuneContext, ObjectRef, TuneContextNode)
TuneContext(Optional< IRModule > mod, Optional< Target > target, Optional< SpaceGenerator > space_generator, Optional< SearchStrategy > search_strategy, Optional< String > task_name, int num_threads, TRandState rand_state, PackedFunc logger)
Constructor.
support::LinearCongruentialEngine::TRandState TRandState
Definition: tune_context.h:97
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
Packed function is a type-erased function. The arguments are passed by packed format.
Definition: packed_func.h:141
int64_t TRandState
Definition: random_engine.h:46
IRModule that holds the functions and type definitions.
Runtime Map container types.
tvm::PrimExpr mod(const tvm::PrimExpr &a, const tvm::PrimExpr &b)
Definition: broadcast.h:290
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
A managed object in the TVM runtime.
Runtime Optional container types.
Type-erased function used across TVM API.
Random number generator. It provides a generic interface consistent with std::uniform_random_bit_gene...
Reflection and serialization of compiler IR/AST nodes.
Runtime String container types.
Compilation target object.