19 #ifndef TVM_META_SCHEDULE_TASK_SCHEDULER_H_ 20 #define TVM_META_SCHEDULE_TASK_SCHEDULER_H_ 28 namespace meta_schedule {
81 v->Visit(
"tasks", &tasks);
83 v->Visit(
"runner", &
runner);
121 static constexpr
const char*
_type_key =
"meta_schedule.TaskScheduler";
184 if (f_tune ==
nullptr) {
192 if (f_initialize_task ==
nullptr) {
195 f_initialize_task(task_id);
200 if (f_set_task_stopped ==
nullptr) {
203 f_set_task_stopped(task_id);
208 if (f_is_task_running ==
nullptr) {
211 return f_is_task_running(task_id);
216 if (f_join_running_task ==
nullptr) {
219 return f_join_running_task(task_id);
224 ICHECK(f_next_task_id !=
nullptr) <<
"PyTaskScheduler's NextTaskId method not implemented!";
225 return f_next_task_id();
228 static constexpr
const char*
_type_key =
"meta_schedule.PyTaskScheduler";
266 #endif // TVM_META_SCHEDULE_TASK_SCHEDULER_H_
#define TVM_DEFINE_MUTABLE_NOTNULLABLE_OBJECT_REF_METHODS(TypeName, ParentType, ObjectName)
Definition: object.h:751
Performance counters for profiling via the PAPI library.
Definition: analyzer.h:36
base class of all object containers.
Definition: object.h:165
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:270
Base class of all object reference.
Definition: object.h:504
#define TVM_DECLARE_FINAL_OBJECT_INFO(TypeName, ParentType)
helper macro to declare type information in a final class.
Definition: object.h:664