tvm
|
Managed reference to SearchTaskNode. More...
#include <search_task.h>
Public Member Functions | |
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 > | |
const ObjectType * | as () const |
Try to downcast the internal Object to a raw pointer of a corresponding type. 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 SearchTaskNode.
tvm::auto_scheduler::SearchTask::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.
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::auto_scheduler::SearchTask::TVM_DEFINE_OBJECT_REF_METHODS | ( | SearchTask | , |
ObjectRef | , | ||
SearchTaskNode | |||
) |