tvm
|
Managed reference to DatabaseNode. More...
#include <database.h>
Public Member Functions | |
TVM_DEFINE_MUTABLE_NOTNULLABLE_OBJECT_REF_METHODS (Database, runtime::ObjectRef, DatabaseNode) | |
![]() | |
ObjectRef ()=default | |
default constructor More... | |
ObjectRef (ObjectPtr< Object > data) | |
Constructor from existing object ptr. More... | |
bool | same_as (const ObjectRef &other) const |
Comparator. More... | |
bool | operator== (const ObjectRef &other) const |
Comparator. More... | |
bool | operator!= (const ObjectRef &other) const |
Comparator. More... | |
bool | operator< (const ObjectRef &other) const |
Comparator. More... | |
bool | defined () const |
const Object * | get () const |
const Object * | operator-> () const |
bool | unique () const |
int | use_count () const |
template<typename ObjectType > | |
const ObjectType * | as () const |
Try to downcast the internal Object to a raw pointer of a corresponding type. More... | |
Static Public Member Functions | |
static Database | JSONDatabase (String path_workload, String path_tuning_record, bool allow_missing) |
Create a default database that uses JSON file for tuning records. More... | |
static Database | PyDatabase (PyDatabaseNode::FHasWorkload f_has_workload, PyDatabaseNode::FCommitWorkload f_commit_workload, PyDatabaseNode::FCommitTuningRecord f_commit_tuning_record, PyDatabaseNode::FGetTopK f_get_top_k, PyDatabaseNode::FGetAllTuningRecords f_get_all_tuning_records, PyDatabaseNode::FSize f_size) |
Create a database with customized methods on the python-side. More... | |
Additional Inherited Members | |
![]() | |
using | ContainerType = Object |
type indicate the container type. More... | |
![]() | |
static constexpr bool | _type_is_nullable = true |
![]() | |
Object * | get_mutable () const |
![]() | |
template<typename T > | |
static T | DowncastNoCheck (ObjectRef ref) |
Internal helper function downcast a ref without check. More... | |
static void | FFIClearAfterMove (ObjectRef *ref) |
Clear the object ref data field without DecRef after we successfully moved the field. More... | |
template<typename ObjectType > | |
static ObjectPtr< ObjectType > | GetDataPtr (const ObjectRef &ref) |
Internal helper function get data_ as ObjectPtr of ObjectType. More... | |
![]() | |
ObjectPtr< Object > | data_ |
Internal pointer that backs the reference. More... | |
Managed reference to DatabaseNode.
|
static |
Create a default database that uses JSON file for tuning records.
path_workload | The path to the workload table. |
path_tuning_record | The path to the database table. |
allow_missing | Whether to create new file when the given path is not found. |
|
static |
Create a database with customized methods on the python-side.
f_has_workload | The packed function of HasWorkload . |
f_commit_workload | The packed function of CommitWorkload . |
f_commit_tuning_record | The packed function of CommitTuningRecord . |
f_get_top_k | The packed function of GetTopK . |
f_get_all_tuning_records | The packed function of GetAllTuningRecords . |
f_size | The packed function of Size . |
tvm::meta_schedule::Database::TVM_DEFINE_MUTABLE_NOTNULLABLE_OBJECT_REF_METHODS | ( | Database | , |
runtime::ObjectRef | , | ||
DatabaseNode | |||
) |