tvm
|
The measure callback with customized methods on the python-side. More...
#include <measure_callback.h>
Public Types | |
using | FApply = ffi::TypedFunction< void(const TaskScheduler &task_scheduler, int task_id, const Array< MeasureCandidate > &measure_candidates, const Array< BuilderResult > &builds, const Array< RunnerResult > &results)> |
Apply a measure callback to the given schedule. More... | |
using | FAsString = ffi::TypedFunction< String()> |
Get the measure callback function as string with name. More... | |
Public Member Functions | |
void | Apply (const TaskScheduler &task_scheduler, int task_id, const Array< MeasureCandidate > &measure_candidates, const Array< BuilderResult > &builds, const Array< RunnerResult > &results) |
Apply a measure callback rule with given arguments. More... | |
TVM_DECLARE_FINAL_OBJECT_INFO (PyMeasureCallbackNode, MeasureCallbackNode) | |
![]() | |
virtual | ~MeasureCallbackNode ()=default |
Virtual destructor. More... | |
TVM_DECLARE_BASE_OBJECT_INFO (MeasureCallbackNode, Object) | |
Static Public Member Functions | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
Public Attributes | |
FApply | f_apply |
The packed function to the Apply function. More... | |
FAsString | f_as_string |
The packed function to the AsString function. More... | |
Static Public Attributes | |
static constexpr const char * | _type_key = "meta_schedule.PyMeasureCallback" |
![]() | |
static constexpr const char * | _type_key = "meta_schedule.MeasureCallback" |
The measure callback with customized methods on the python-side.
using tvm::meta_schedule::PyMeasureCallbackNode::FApply = ffi::TypedFunction<void(const TaskScheduler& task_scheduler, int task_id, const Array<MeasureCandidate>& measure_candidates, const Array<BuilderResult>& builds, const Array<RunnerResult>& results)> |
Apply a measure callback to the given schedule.
task_scheduler | The task scheduler. |
tasks | The list of tune context to process. |
measure_candidates | The measure candidates. |
builds | The builder results by building the measure candidates. |
results | The runner results by running the built measure candidates. |
using tvm::meta_schedule::PyMeasureCallbackNode::FAsString = ffi::TypedFunction<String()> |
Get the measure callback function as string with name.
|
virtual |
Apply a measure callback rule with given arguments.
task_scheduler | The task scheduler. |
task_id | The id of the task (tune context) to apply measure callbacks. |
measure_candidates | The measure candidates. |
builder_results | The builder results by building the measure candidates. |
runner_results | The runner results by running the built measure candidates. |
Implements tvm::meta_schedule::MeasureCallbackNode.
|
inlinestatic |
tvm::meta_schedule::PyMeasureCallbackNode::TVM_DECLARE_FINAL_OBJECT_INFO | ( | PyMeasureCallbackNode | , |
MeasureCallbackNode | |||
) |
|
staticconstexpr |
FApply tvm::meta_schedule::PyMeasureCallbackNode::f_apply |
The packed function to the Apply
function.
FAsString tvm::meta_schedule::PyMeasureCallbackNode::f_as_string |
The packed function to the AsString
function.