|
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 ffi::Array< MeasureCandidate > &measure_candidates, const ffi::Array< BuilderResult > &builds, const ffi::Array< RunnerResult > &results)> |
| Apply a measure callback to the given schedule. More... | |
| using | FAsString = ffi::TypedFunction< ffi::String()> |
| Get the measure callback function as string with name. More... | |
Public Member Functions | |
| void | Apply (const TaskScheduler &task_scheduler, int task_id, const ffi::Array< MeasureCandidate > &measure_candidates, const ffi::Array< BuilderResult > &builds, const ffi::Array< RunnerResult > &results) |
| Apply a measure callback rule with given arguments. More... | |
| TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("meta_schedule.PyMeasureCallback", PyMeasureCallbackNode, MeasureCallbackNode) | |
Public Member Functions inherited from tvm::meta_schedule::MeasureCallbackNode | |
| virtual | ~MeasureCallbackNode ()=default |
| Virtual destructor. More... | |
| TVM_FFI_DECLARE_OBJECT_INFO ("meta_schedule.MeasureCallback", MeasureCallbackNode, Object) | |
Static Public Member Functions | |
| static void | RegisterReflection () |
Static Public Member Functions inherited from tvm::meta_schedule::MeasureCallbackNode | |
| 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... | |
Additional Inherited Members | |
Static Public Attributes inherited from tvm::meta_schedule::MeasureCallbackNode | |
| static constexpr const bool | _type_mutable = true |
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 ffi::Array<MeasureCandidate>& measure_candidates, const ffi::Array<BuilderResult>& builds, const ffi::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<ffi::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_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "meta_schedule.PyMeasureCallback" | , |
| PyMeasureCallbackNode | , | ||
| MeasureCallbackNode | |||
| ) |
| 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.