19 #ifndef TVM_META_SCHEDULE_DATABASE_H_
20 #define TVM_META_SCHEDULE_DATABASE_H_
37 namespace meta_schedule {
52 v->Visit(
"mod", &
mod);
56 static constexpr
const char*
_type_key =
"meta_schedule.Workload";
107 const ModuleEquality& mod_eq_;
128 v->Visit(
"trace", &
trace);
131 v->Visit(
"target", &
target);
135 static constexpr
const char*
_type_key =
"meta_schedule.TuningRecord";
244 const String& workload_name);
253 const String& workload_name);
262 const String& workload_name);
274 static constexpr
const char*
_type_key =
"meta_schedule.Database";
279 std::unique_ptr<ModuleEquality> mod_eq_;
396 ICHECK(
f_has_workload !=
nullptr) <<
"PyDatabase's HasWorkload method not implemented!";
401 ICHECK(
f_commit_workload !=
nullptr) <<
"PyDatabase's CommitWorkload method not implemented!";
407 <<
"PyDatabase's CommitTuningRecord method not implemented!";
412 ICHECK(
f_get_top_k !=
nullptr) <<
"PyDatabase's GetTopK method not implemented!";
418 <<
"PyDatabase's GetAllTuningRecords method not implemented!";
423 const String& workload_name)
final {
432 const String& workload_name)
final {
441 const String& workload_name)
final {
450 ICHECK(
f_size !=
nullptr) <<
"PyDatabase's Size method not implemented!";
454 static constexpr
const char*
_type_key =
"meta_schedule.PyDatabase";
485 bool allow_missing,
String mod_eq_name =
"structural");
525 String mod_eq_name =
"structural");
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
Managed reference class to IRModuleNode.
Definition: module.h:366
Managed reference class to TargetNode.
Definition: target.h:200
Array, container representing a contiguous sequence of ObjectRefs.
Definition: array.h:289
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
Reference to string objects.
Definition: string.h:98
Managed reference to ScheduleNode.
Definition: schedule.h:877
Managed reference to TraceNode.
Definition: trace.h:141
IRModule that holds the functions and type definitions.
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.
Type-erased function used across TVM API.
Reflection and serialization of compiler IR/AST nodes.
Runtime String container types.
Compilation target object.