#include <tuning_api.h>
|
virtual | ~DatabaseNode ()=default |
| Default destructor. More...
|
|
virtual bool | HasWorkload (const IRModule &mod)=0 |
| Check if the database has the given workload. More...
|
|
virtual bool | HasMeasurementRecord (const meta_schedule::Workload &workload, const Target &target)=0 |
| Check if the database has a measurement record for the given workload and target pair. More...
|
|
virtual bool | HasTuningRecord (const meta_schedule::Workload &workload, const Target &target)=0 |
| Check if the database has a tuning record for the given workload and target pair. More...
|
|
virtual meta_schedule::Workload | CommitWorkload (const IRModule &mod)=0 |
| Look up or add workload to the database if missing. More...
|
|
virtual void | CommitMeasurementRecord (const meta_schedule::Workload &workload, const Target &target, const Array< FloatImm > &record)=0 |
| Add a measurement record for a given pair of target and workload to the database. More...
|
|
virtual void | CommitTuningRecord (const meta_schedule::Workload &workload, const Target &target, const TuningRecord &record)=0 |
| Add a tuning record for a given pair of target and workload to the database. More...
|
|
virtual Array< TuningRecord > | GetTopK (const meta_schedule::Workload &workload, const Target &target, int top_k)=0 |
| Get the top K tuning records of given workload and target from the database. More...
|
|
virtual Array< FloatImm > | GetMeasurementRecord (const meta_schedule::Workload &workload, const Target target)=0 |
| Get the measurement record of given workload and target from the database. More...
|
|
| TVM_DECLARE_BASE_OBJECT_INFO (DatabaseNode, runtime::Object) |
|
uint32_t | type_index () const |
|
std::string | GetTypeKey () const |
|
size_t | GetTypeKeyHash () const |
|
template<typename TargetType > |
bool | IsInstance () const |
|
bool | unique () const |
|
| Object () |
|
| Object (const Object &other) |
|
| Object (Object &&other) |
|
Object & | operator= (const Object &other) |
|
Object & | operator= (Object &&other) |
|
◆ ~DatabaseNode()
virtual tvm::relax::DatabaseNode::~DatabaseNode |
( |
| ) |
|
|
virtualdefault |
◆ CommitMeasurementRecord()
Add a measurement record for a given pair of target and workload to the database.
- Parameters
-
workload | Workload to be searched for. |
target | Target to be searched for. |
record | Measurement record to be added. |
◆ CommitTuningRecord()
Add a tuning record for a given pair of target and workload to the database.
- Parameters
-
workload | Workload to be searched for. |
target | Target to be searched for. |
record | Tuning record to be added. |
◆ CommitWorkload()
Look up or add workload to the database if missing.
- Parameters
-
mod | The IRModule to be searched for or added. |
- Returns
- The workload corresponding to the given IRModule.
◆ GetMeasurementRecord()
Get the measurement record of given workload and target from the database.
- Parameters
-
workload | The workload to be searched for. |
target | Target to be searched for. |
- Returns
- Measurement.
◆ GetTopK()
Get the top K tuning records of given workload and target from the database.
- Parameters
-
workload | The workload to be searched for. |
target | Target to be searched for. |
top_k | The number of top records to be returned. |
- Returns
- An array of top K tuning records for the given workload.
◆ HasMeasurementRecord()
Check if the database has a measurement record for the given workload and target pair.
- Parameters
-
workload | The workload to be searched for. |
target | The target to be searched for. |
- Returns
- Whether the database has the measurement record for given workload and target pair.
◆ HasTuningRecord()
Check if the database has a tuning record for the given workload and target pair.
- Parameters
-
workload | The workload to be searched for. |
target | The target to be searched for. |
- Returns
- Whether the database has the tuning record for the given workload and target pair.
◆ HasWorkload()
virtual bool tvm::relax::DatabaseNode::HasWorkload |
( |
const IRModule & |
mod | ) |
|
|
pure virtual |
Check if the database has the given workload.
- Parameters
-
- Returns
- Whether the database has the given workload.
◆ TVM_DECLARE_BASE_OBJECT_INFO()
◆ _type_key
constexpr const char* tvm::relax::DatabaseNode::_type_key = "relax.tuning_api.Database" |
|
staticconstexpr |
The documentation for this class was generated from the following file: