19 #ifndef TVM_META_SCHEDULE_RUNNER_H_ 20 #define TVM_META_SCHEDULE_RUNNER_H_ 32 namespace meta_schedule {
45 v->Visit(
"artifact_path", &artifact_path);
46 v->Visit(
"device_type", &device_type);
47 v->Visit(
"args_info", &args_info);
50 static constexpr
const char*
_type_key =
"meta_schedule.RunnerInput";
79 v->Visit(
"run_secs", &run_secs);
80 v->Visit(
"error_msg", &error_msg);
83 static constexpr
const char*
_type_key =
"meta_schedule.RunnerResult";
135 ICHECK(f_done !=
nullptr) <<
"PyRunnerFuture's Done method not implemented!";
143 ICHECK(f_result !=
nullptr) <<
"PyRunnerFuture's Result method not implemented!";
147 static constexpr
const char*
_type_key =
"meta_schedule.RunnerFuture";
191 static constexpr
const char*
_type_key =
"meta_schedule.Runner";
223 ICHECK(f_run !=
nullptr) <<
"PyRunner's Run method not implemented!";
224 return f_run(runner_inputs);
227 static constexpr
const char*
_type_key =
"meta_schedule.PyRunner";
234 #endif // TVM_META_SCHEDULE_RUNNER_H_
Runtime Optional container types.
#define TVM_DEFINE_MUTABLE_NOTNULLABLE_OBJECT_REF_METHODS(TypeName, ParentType, ObjectName)
Definition: object.h:758
Runtime String container types.
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
base class of all object containers.
Definition: object.h:167
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
Reference to string objects.
Definition: string.h:98
Base class of all object reference.
Definition: object.h:511
A managed object in the TVM runtime.
Optional container that to represent to a Nullable variant of T.
Definition: optional.h:51
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
#define TVM_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS(TypeName, ParentType, ObjectName)
Definition: object.h:728
Type-erased function used across TVM API.