tvm
|
The mutator with customized methods on the python-side. More...
#include <mutator.h>
Public Types | |
using | FInitializeWithTuneContext = Mutator::FInitializeWithTuneContext |
using | FApply = Mutator::FApply |
using | FClone = Mutator::FClone |
using | FAsString = Mutator::FAsString |
Public Member Functions | |
void | InitializeWithTuneContext (const TuneContext &context) final |
Initialize the design space generator with tuning context. More... | |
Optional< tir::Trace > | Apply (const tir::Trace &trace, support::LinearCongruentialEngine::TRandState *rand_state) final |
Apply the mutator function to the given trace. More... | |
Mutator | Clone () const final |
Clone the mutator. More... | |
TVM_DECLARE_FINAL_OBJECT_INFO (PyMutatorNode, MutatorNode) | |
![]() | |
virtual | ~MutatorNode ()=default |
Virtual destructor. More... | |
TVM_DECLARE_BASE_OBJECT_INFO (MutatorNode, Object) | |
Static Public Member Functions | |
static void | RegisterReflection () |
![]() | |
static void | RegisterReflection () |
Public Attributes | |
FInitializeWithTuneContext | f_initialize_with_tune_context |
The packed function to the InitializeWithTuneContext function. More... | |
FApply | f_apply |
The packed function to the Apply function. More... | |
FClone | f_clone |
The packed function to the Clone function. More... | |
FAsString | f_as_string |
The packed function to the AsString function. More... | |
Static Public Attributes | |
static constexpr const char * | _type_key = "meta_schedule.PyMutator" |
![]() | |
static constexpr const char * | _type_key = "meta_schedule.Mutator" |
The mutator with customized methods on the python-side.
using tvm::meta_schedule::PyMutatorNode::FInitializeWithTuneContext = Mutator::FInitializeWithTuneContext |
|
finalvirtual |
Apply the mutator function to the given trace.
trace | The given trace for mutation. |
rand_state | The random state for mutation. |
Implements tvm::meta_schedule::MutatorNode.
|
finalvirtual |
|
finalvirtual |
Initialize the design space generator with tuning context.
context | The tuning context for initialization. |
Implements tvm::meta_schedule::MutatorNode.
|
inlinestatic |
tvm::meta_schedule::PyMutatorNode::TVM_DECLARE_FINAL_OBJECT_INFO | ( | PyMutatorNode | , |
MutatorNode | |||
) |
|
staticconstexpr |
FApply tvm::meta_schedule::PyMutatorNode::f_apply |
The packed function to the Apply
function.
FAsString tvm::meta_schedule::PyMutatorNode::f_as_string |
The packed function to the AsString
function.
FClone tvm::meta_schedule::PyMutatorNode::f_clone |
The packed function to the Clone
function.
FInitializeWithTuneContext tvm::meta_schedule::PyMutatorNode::f_initialize_with_tune_context |
The packed function to the InitializeWithTuneContext
function.