Managed reference to SearchTaskNode.
More...
#include <search_task.h>
|
| SearchTask (ComputeDAG compute_dag, String workload_key, Target target, Target target_host, Optional< HardwareParams > hardware_params, LayoutRewriteOption layout_rewrite_option, Array< String > task_input_names, String desc="") |
| The constructor. More...
|
|
| TVM_DEFINE_OBJECT_REF_METHODS (SearchTask, ObjectRef, SearchTaskNode) |
|
| 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 , typename = std::enable_if_t<std::is_base_of_v<Object, ObjectType>>> |
const ObjectType * | as () const |
| Try to downcast the internal Object to a raw pointer of a corresponding type. More...
|
|
template<typename ObjectRefType , typename = std::enable_if_t<std::is_base_of_v<ObjectRef, ObjectRefType>>> |
Optional< ObjectRefType > | as () const |
| Try to downcast the ObjectRef to a Optional<T> of the requested type. More...
|
|
Managed reference to SearchTaskNode.
- See also
- SearchTaskNode
◆ SearchTask()
The constructor.
- Parameters
-
compute_dag | The ComputeDAG for the compute declaration. |
workload_key | The workload key for the compute declaration. |
target | The target device of this search task. |
target_host | The target host device of this search task. |
hardware_params | Hardware parameters used in this search task. |
layout_rewrite_option | The layout rewrite option used for measuring programs. |
task_input_names | Names of some user defined input data used in program measuring. |
desc | The description string of this task. |
◆ TVM_DEFINE_OBJECT_REF_METHODS()
The documentation for this class was generated from the following file: