Managed reference to LocalRunnerNode.
More...
#include <measure.h>
|
| LocalRunner (int timeout, int number, int repeat, int min_repeat_ms, double cooldown_interval, bool enable_cpu_cache_flush, int device) |
| The constructor. See the corresponding class in python/tvm/auto_scheduler/measure.py for more detailed parameter explanation. More...
|
|
| TVM_DEFINE_MUTABLE_OBJECT_REF_METHODS (LocalRunner, ProgramRunner, LocalRunnerNode) |
|
| TVM_DEFINE_MUTABLE_OBJECT_REF_METHODS (ProgramRunner, ObjectRef, ProgramRunnerNode) |
|
| 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 LocalRunnerNode.
- See also
- LocalRunnerNode
◆ LocalRunner()
tvm::auto_scheduler::LocalRunner::LocalRunner |
( |
int |
timeout, |
|
|
int |
number, |
|
|
int |
repeat, |
|
|
int |
min_repeat_ms, |
|
|
double |
cooldown_interval, |
|
|
bool |
enable_cpu_cache_flush, |
|
|
int |
device |
|
) |
| |
The constructor. See the corresponding class in python/tvm/auto_scheduler/measure.py for more detailed parameter explanation.
- Parameters
-
timeout | The timeout limit (in second) for each run. This is used in a wrapper of the multiprocessing.Process.join(). |
number | The number of times to run the generated code for taking average. |
repeat | The number of times to repeat the measurement. |
min_repeat_ms | The minimum duration of one repeat in milliseconds. |
cooldown_interval | The cool down interval between two measurements. |
enable_cpu_cache_flush | Whether to flush cache on CPU between repeated measurements. |
device | Which device to run on if multiple are available. |
◆ TVM_DEFINE_MUTABLE_OBJECT_REF_METHODS()
The documentation for this class was generated from the following file: