tvm
|
Managed reference to MutatorNode. More...
#include <mutator.h>
Public Types | |
using | FInitializeWithTuneContext = runtime::TypedPackedFunc< void(const TuneContext &)> |
The function type of InitializeWithTuneContext method. More... | |
using | FApply = runtime::TypedPackedFunc< Optional< tir::Trace >(const tir::Trace &, support::LinearCongruentialEngine::TRandState rand_state)> |
Apply the mutator function to the given trace. More... | |
using | FClone = runtime::TypedPackedFunc< Mutator()> |
Clone the mutator. More... | |
using | FAsString = runtime::TypedPackedFunc< String()> |
Get the mutator as string with name. More... | |
![]() | |
using | ContainerType = Object |
type indicate the container type. More... | |
Public Member Functions | |
TVM_DEFINE_MUTABLE_OBJECT_REF_METHODS (Mutator, ObjectRef, MutatorNode) | |
![]() | |
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 Mutator | MutateTileSize () |
Create a Mutator that mutates the decision of instruction Sample-Perfect-Tile. More... | |
static Mutator | MutateParallel (int64_t max_jobs_per_core) |
Create a Mutator that mutates the parallel extent. More... | |
static Mutator | MutateUnroll () |
Create a Mutator that mutates auto unroll step. More... | |
static Mutator | MutateComputeLocation () |
Create a Mutator that mutates the outcome of SampleComputeLocation. More... | |
static Mutator | MutateThreadBinding () |
Create a Mutator that mutates auto thread binding. More... | |
static Mutator | PyMutator (FInitializeWithTuneContext f_initialize_with_tune_context, FApply f_apply, FClone f_clone, FAsString f_as_string) |
Create a mutator with customized methods on the python-side. More... | |
Additional Inherited Members | |
![]() | |
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 MutatorNode.
using tvm::meta_schedule::Mutator::FApply = runtime::TypedPackedFunc<Optional<tir::Trace>( const tir::Trace&, support::LinearCongruentialEngine::TRandState rand_state)> |
Apply the mutator function to the given trace.
trace | The given trace for mutation. |
Get the mutator as string with name.
Clone the mutator.
using tvm::meta_schedule::Mutator::FInitializeWithTuneContext = runtime::TypedPackedFunc<void(const TuneContext&)> |
The function type of InitializeWithTuneContext
method.
context | The tuning context for initialization. |
|
static |
Create a Mutator that mutates the outcome of SampleComputeLocation.
|
static |
Create a Mutator that mutates the parallel extent.
max_jobs_per_core | The maximum number of parallel jobs per core. |
|
static |
Create a Mutator that mutates auto thread binding.
|
static |
Create a Mutator that mutates the decision of instruction Sample-Perfect-Tile.
|
static |
Create a Mutator that mutates auto unroll step.
|
static |
Create a mutator with customized methods on the python-side.
f_initialize_with_tune_context | The packed function of InitializeWithTuneContext . |
f_apply | The packed function of Apply . |
f_clone | The packed function of Clone . |
f_as_string | The packed function of AsString . |
tvm::meta_schedule::Mutator::TVM_DEFINE_MUTABLE_OBJECT_REF_METHODS | ( | Mutator | , |
ObjectRef | , | ||
MutatorNode | |||
) |