tvm
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
tvm::meta_schedule::TuningRecordNode Class Reference

The class of tuning records. More...

#include <database.h>

Inheritance diagram for tvm::meta_schedule::TuningRecordNode:
Collaboration diagram for tvm::meta_schedule::TuningRecordNode:

Public Member Functions

 TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("meta_schedule.TuningRecord", TuningRecordNode, runtime::Object)
 
MeasureCandidate AsMeasureCandidate () const
 Construct the measure candidate given the initial IR module and trace stored in the tuning record. More...
 
ObjectRef AsJSON () const
 Export the tuning record to a JSON string. More...
 
bool IsValid () const
 Check if this tuning record has valid trace instructions and successful run results. More...
 

Static Public Member Functions

static void RegisterReflection ()
 

Public Attributes

tir::Trace trace
 The trace tuned. More...
 
Workload workload {ffi::UnsafeInit()}
 The workload. More...
 
ffi::Optional< ffi::Array< FloatImm > > run_secs
 The profiling result in seconds. More...
 
ffi::Optional< Targettarget
 The target for tuning. More...
 
ffi::Optional< ffi::Array< ArgInfo > > args_info
 The argument information. More...
 

Detailed Description

The class of tuning records.

Member Function Documentation

◆ AsJSON()

ObjectRef tvm::meta_schedule::TuningRecordNode::AsJSON ( ) const

Export the tuning record to a JSON string.

Returns
An array containing the trace, running secs, serialized target, and argument information.

◆ AsMeasureCandidate()

MeasureCandidate tvm::meta_schedule::TuningRecordNode::AsMeasureCandidate ( ) const

Construct the measure candidate given the initial IR module and trace stored in the tuning record.

◆ IsValid()

bool tvm::meta_schedule::TuningRecordNode::IsValid ( ) const

Check if this tuning record has valid trace instructions and successful run results.

Returns
The check result.

◆ RegisterReflection()

static void tvm::meta_schedule::TuningRecordNode::RegisterReflection ( )
inlinestatic

◆ TVM_FFI_DECLARE_OBJECT_INFO_FINAL()

tvm::meta_schedule::TuningRecordNode::TVM_FFI_DECLARE_OBJECT_INFO_FINAL ( "meta_schedule.TuningRecord"  ,
TuningRecordNode  ,
runtime::Object   
)

Member Data Documentation

◆ args_info

ffi::Optional<ffi::Array<ArgInfo> > tvm::meta_schedule::TuningRecordNode::args_info

The argument information.

◆ run_secs

ffi::Optional<ffi::Array<FloatImm> > tvm::meta_schedule::TuningRecordNode::run_secs

The profiling result in seconds.

◆ target

ffi::Optional<Target> tvm::meta_schedule::TuningRecordNode::target

The target for tuning.

◆ trace

tir::Trace tvm::meta_schedule::TuningRecordNode::trace

The trace tuned.

◆ workload

Workload tvm::meta_schedule::TuningRecordNode::workload {ffi::UnsafeInit()}

The workload.


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