tvm
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
tvm::s_tir::meta_schedule::MeasureCallback Class Reference

Managed reference to MeasureCallbackObj. More...

#include <measure_callback.h>

Inheritance diagram for tvm::s_tir::meta_schedule::MeasureCallback:
Collaboration diagram for tvm::s_tir::meta_schedule::MeasureCallback:

Public Member Functions

 MeasureCallback (ffi::UnsafeInit tag, ffi::ObjectPtr< MeasureCallbackObj > data)
 
 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE (MeasureCallback, ffi::ObjectRef, MeasureCallbackObj)
 

Static Public Member Functions

static MeasureCallback AddToDatabase ()
 Create a measure callback that adds the measurement results into the database.
 
static MeasureCallback RemoveBuildArtifact ()
 Create a measure callback that removes the build artifacts from the disk.
 
static MeasureCallback UpdateCostModel ()
 Create a measure callback that updates the cost model with measurement result.
 
static MeasureCallback PyMeasureCallback (PyMeasureCallbackObj::FApply f_apply)
 Create a measure callback with customized methods on the python-side.
 
static ffi::Array< MeasureCallback, void > Default ()
 The default list of measure callbacks.
 

Detailed Description

Managed reference to MeasureCallbackObj.

See also
MeasureCallbackObj

Constructor & Destructor Documentation

◆ MeasureCallback()

tvm::s_tir::meta_schedule::MeasureCallback::MeasureCallback ( ffi::UnsafeInit  tag,
ffi::ObjectPtr< MeasureCallbackObj >  data 
)
inlineexplicit

Member Function Documentation

◆ AddToDatabase()

static MeasureCallback tvm::s_tir::meta_schedule::MeasureCallback::AddToDatabase ( )
static

Create a measure callback that adds the measurement results into the database.

Returns
The measure callback created.

◆ Default()

static ffi::Array< MeasureCallback, void > tvm::s_tir::meta_schedule::MeasureCallback::Default ( )
static

The default list of measure callbacks.

◆ PyMeasureCallback()

static MeasureCallback tvm::s_tir::meta_schedule::MeasureCallback::PyMeasureCallback ( PyMeasureCallbackObj::FApply  f_apply)
static

Create a measure callback with customized methods on the python-side.

Parameters
f_applyThe packed function of Apply.
Returns
The measure callback created.

◆ RemoveBuildArtifact()

static MeasureCallback tvm::s_tir::meta_schedule::MeasureCallback::RemoveBuildArtifact ( )
static

Create a measure callback that removes the build artifacts from the disk.

Returns
The measure callback created.

◆ TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE()

tvm::s_tir::meta_schedule::MeasureCallback::TVM_FFI_DEFINE_OBJECT_REF_METHODS_NOTNULLABLE ( MeasureCallback  ,
ffi::ObjectRef  ,
MeasureCallbackObj   
)

◆ UpdateCostModel()

static MeasureCallback tvm::s_tir::meta_schedule::MeasureCallback::UpdateCostModel ( )
static

Create a measure callback that updates the cost model with measurement result.

Returns
The measure callback created.

The documentation for this class was generated from the following file: