19 #ifndef TVM_META_SCHEDULE_BUILDER_H_ 20 #define TVM_META_SCHEDULE_BUILDER_H_ 34 namespace meta_schedule {
47 v->Visit(
"mod", &mod);
48 v->Visit(
"target", &target);
49 v->Visit(
"params", ¶ms);
52 static constexpr
const char*
_type_key =
"meta_schedule.BuilderInput";
82 v->Visit(
"artifact_path", &artifact_path);
83 v->Visit(
"error_msg", &error_msg);
86 static constexpr
const char*
_type_key =
"meta_schedule.BuilderResult";
123 static constexpr
const char*
_type_key =
"meta_schedule.Builder";
153 ICHECK(f_build !=
nullptr) <<
"PyBuilder's Build method not implemented!";
154 return f_build(build_inputs);
157 static constexpr
const char*
_type_key =
"meta_schedule.PyBuilder";
164 #endif // TVM_META_SCHEDULE_BUILDER_H_
Runtime Optional container types.
#define TVM_DEFINE_MUTABLE_NOTNULLABLE_OBJECT_REF_METHODS(TypeName, ParentType, ObjectName)
Definition: object.h:758
Runtime String container types.
IRModule that holds the functions and type definitions.
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
A device-independent managed NDArray abstraction.
Array, container representing a contiguous sequence of ObjectRefs.
Definition: array.h:289
Please refer to TypedPackedFunc<R(Args..)>.
Definition: packed_func.h:60
Managed reference class to TargetNode.
Definition: target.h:183
Base class of all object reference.
Definition: object.h:511
A managed object in the TVM runtime.
Managed reference class to IRModuleNode.
Definition: module.h:348
runtime::Module Build(IRModule mod, Target target)
Build a module from array of lowered function.
Compilation target object.
Map container of NodeRef->NodeRef in DSL graph. Map implements copy on write semantics, which means map is mutable but copy will happen when array is referenced in more than two places.
Definition: map.h:1271
Runtime Map container types.
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
#define TVM_DEFINE_NOTNULLABLE_OBJECT_REF_METHODS(TypeName, ParentType, ObjectName)
Definition: object.h:728
Type-erased function used across TVM API.