#include <database.h>
◆ DatabaseNode()
| tvm::s_tir::meta_schedule::DatabaseNode::DatabaseNode |
( |
ffi::String |
mod_eq_name = "structural" | ) |
|
|
explicit |
Constructor.
- Parameters
-
| mod_eq_name | A string to specify the module equality testing and hashing method. It must be one of the followings:
- "structural": Use StructuralEqual/Hash
- "ignore-tensor": Same as "structural", but ignore tensor raw data during equality testing and hashing.
- "anchor-block": Apply equality testing and hashing on the anchor block extracted from a given module. The "ignore-tensor" varint is used for the extracted blocks or in case no anchor block is found. For the definition of the anchor block, see tvm/tirx/analysis.h.
|
◆ ~DatabaseNode()
| virtual tvm::s_tir::meta_schedule::DatabaseNode::~DatabaseNode |
( |
| ) |
|
|
virtual |
◆ CommitTuningRecord()
◆ CommitWorkload()
◆ DumpPruned()
| void tvm::s_tir::meta_schedule::DatabaseNode::DumpPruned |
( |
Database |
destination | ) |
|
Prune the database and dump it a given database.
- Parameters
-
| destination | The destination database to be dumped to. |
◆ GetAllTuningRecords()
| virtual ffi::Array< TuningRecord > tvm::s_tir::meta_schedule::DatabaseNode::GetAllTuningRecords |
( |
| ) |
|
|
pure virtual |
◆ GetModuleEquality()
Return a reference to the owned module equality method instance.
◆ GetTopK()
Get the top K valid tuning records of given workload from the database.
- Parameters
-
| workload | The workload 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.
Implemented in tvm::s_tir::meta_schedule::PyDatabaseNode.
◆ HasWorkload()
◆ QueryIRModule()
◆ QuerySchedule()
Query the best schedule of the given workload from the database.
- Parameters
-
| mod | The IRModule to be searched for. |
| target | The target to be searched for. |
| workload_name | The name of the workload to be searched for. |
- Returns
- The schedule in the best schedule of the given workload; std::nullopt if not found.
Reimplemented in tvm::s_tir::meta_schedule::PyDatabaseNode.
◆ QueryTuningRecord()
Query the best record of the given workload from the database.
- Parameters
-
| mod | The IRModule to be searched for. |
| target | The target to be searched for. |
| workload_name | The name of the workload to be searched for. |
- Returns
- The best record of the given workload; std::nullopt if not found.
Reimplemented in tvm::s_tir::meta_schedule::PyDatabaseNode.
◆ Size()
◆ TVM_FFI_DECLARE_OBJECT_INFO()
| tvm::s_tir::meta_schedule::DatabaseNode::TVM_FFI_DECLARE_OBJECT_INFO |
( |
"s_tir.meta_schedule.Database" |
, |
|
|
DatabaseNode |
, |
|
|
ffi::Object |
|
|
) |
| |
◆ _type_mutable
The documentation for this class was generated from the following file: