25 #ifndef TVM_AUTO_SCHEDULER_AUTO_SCHEDULE_H_ 26 #define TVM_AUTO_SCHEDULER_AUTO_SCHEDULE_H_ 34 namespace auto_scheduler {
55 v->Visit(
"num_measure_trials", &num_measure_trials);
56 v->Visit(
"early_stopping", &early_stopping);
57 v->Visit(
"num_measures_per_round", &num_measures_per_round);
58 v->Visit(
"verbose", &verbose);
59 v->Visit(
"builder", &builder);
60 v->Visit(
"runner", &runner);
61 v->Visit(
"measure_callbacks", &measure_callbacks);
64 static constexpr
const char*
_type_key =
"auto_scheduler.TuningOptions";
104 #endif // TVM_AUTO_SCHEDULER_AUTO_SCHEDULE_H_ int num_measures_per_round
The number of programs to be measured at each search round.
Definition: auto_schedule.h:44
int early_stopping
Stops the tuning early if no improvement after n measurements.
Definition: auto_schedule.h:42
ProgramBuilder builder
ProgramBuilder which builds the program.
Definition: auto_schedule.h:48
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
int verbose
Verbosity level. 0 for silent, 1 to output information during schedule searching. ...
Definition: auto_schedule.h:46
void VisitAttrs(tvm::AttrVisitor *v)
Definition: auto_schedule.h:54
Tuning and measurement options.
Definition: auto_schedule.h:37
TVM_DECLARE_FINAL_OBJECT_INFO(TuningOptionsNode, Object)
base class of all object containers.
Definition: object.h:167
Managed reference to ProgramRunnerNode.
Definition: measure.h:333
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
static constexpr const char * _type_key
Definition: auto_schedule.h:64
Distributed measurement infrastructure to measure the runtime costs of tensor programs. These functions are responsible for building the tvm module, uploading it to remote devices, recording the running time costs, and checking the correctness of the output.
#define TVM_DEFINE_OBJECT_REF_METHODS(TypeName, ParentType, ObjectName)
Definition: object.h:713
Managed reference to SearchPolicyNode.
Definition: search_policy.h:198
int num_measure_trials
The number of total measurement trials.
Definition: auto_schedule.h:40
Base class of all object reference.
Definition: object.h:511
ProgramRunner runner
ProgramRunner which runs the program and measures time costs.
Definition: auto_schedule.h:50
Managed reference to ProgramBuilderNode.
Definition: measure.h:291
Optional< Array< MeasureCallback > > measure_callbacks
MeasureCallback functions to be called after each measure batch.
Definition: auto_schedule.h:52
Optional container that to represent to a Nullable variant of T.
Definition: optional.h:51
std::pair< te::Schedule, Array< te::Tensor > > AutoSchedule(SearchPolicy search_policy, TuningOptions tuning_options)
Run schedule search for a given compute declaration.
Managed reference to TuningOptionsNode.
Definition: auto_schedule.h:72
The base class of search policies, including the abstract definition of search policy and other suppo...