tvm
Public Member Functions | Static Public Member Functions | Public Attributes | Static 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_DECLARE_FINAL_OBJECT_INFO (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 {nullptr}
 The workload. More...
 
Optional< Array< FloatImm > > run_secs
 The profiling result in seconds. More...
 
Optional< Targettarget
 The target for tuning. More...
 
Optional< Array< ArgInfo > > args_info
 The argument information. More...
 

Static Public Attributes

static constexpr const char * _type_key = "meta_schedule.TuningRecord"
 

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_DECLARE_FINAL_OBJECT_INFO()

tvm::meta_schedule::TuningRecordNode::TVM_DECLARE_FINAL_OBJECT_INFO ( TuningRecordNode  ,
runtime::Object   
)

Member Data Documentation

◆ _type_key

constexpr const char* tvm::meta_schedule::TuningRecordNode::_type_key = "meta_schedule.TuningRecord"
staticconstexpr

◆ args_info

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

The argument information.

◆ run_secs

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

The profiling result in seconds.

◆ target

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 {nullptr}

The workload.


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