19 #ifndef TVM_META_SCHEDULE_TASK_SCHEDULER_H_ 20 #define TVM_META_SCHEDULE_TASK_SCHEDULER_H_ 38 namespace meta_schedule {
64 v->Visit(
"ctx", &
ctx);
66 v->Visit(
"flop", &
flop);
67 v->Visit(
"is_terminated", &is_terminated);
68 v->Visit(
"build_error_count", &build_error_count);
69 v->Visit(
"run_error_count", &run_error_count);
71 v->Visit(
"measure_candidates", &measure_candidates);
72 v->Visit(
"builder_results", &builder_results);
73 v->Visit(
"runner_futures", &runner_futures);
76 static constexpr
const char*
_type_key =
"meta_schedule.TaskRecord";
148 v->Visit(
"tasks_", &tasks_);
149 v->Visit(
"measure_callbacks_", &measure_callbacks_);
150 v->Visit(
"database_", &database_);
151 v->Visit(
"cost_model_", &cost_model_);
152 v->Visit(
"remaining_tasks_", &remaining_tasks_);
159 virtual int NextTaskId() = 0;
181 int max_trials_global,
182 int max_trials_per_task,
183 int num_trials_per_iter,
193 void TerminateTask(
int task_id);
198 void TouchTask(
int task_id);
200 void PrintTuningStatistics();
202 static constexpr
const char*
_type_key =
"meta_schedule.TaskScheduler";
224 int max_trials_global,
225 int max_trials_per_task,
226 int num_trials_per_iter,
247 int NextTaskId()
final;
250 int max_trials_per_task,
int num_trials_per_iter,
Builder builder,
Runner runner,
254 static constexpr
const char*
_type_key =
"meta_schedule.PyTaskScheduler";
297 #endif // TVM_META_SCHEDULE_TASK_SCHEDULER_H_
Runtime Optional container types.
#define TVM_DEFINE_MUTABLE_NOTNULLABLE_OBJECT_REF_METHODS(TypeName, ParentType, ObjectName)
Definition: object.h:758
Random number generator. It provides a generic interface consistent with std::uniform_random_bit_gene...
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
base class of all object containers.
Definition: object.h:167
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
Array, container representing a contiguous sequence of ObjectRefs.
Definition: array.h:289
Base class of all object reference.
Definition: object.h:511
A managed object in the TVM runtime.
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
constexpr runtime::NullOptType NullOpt
Definition: optional.h:160
Reflection and serialization of compiler IR/AST nodes.
#define TVM_DECLARE_BASE_OBJECT_INFO(TypeName, ParentType)
helper macro to declare a base object type that can be inherited.
Definition: object.h:648
Type-erased function used across TVM API.