tvm
Public Member Functions | Static Public Member Functions | List of all members
tvm::meta_schedule::Mutator Class Reference

Managed reference to MutatorNode. More...

#include <mutator.h>

Inheritance diagram for tvm::meta_schedule::Mutator:
Collaboration diagram for tvm::meta_schedule::Mutator:

Public Member Functions

 TVM_DEFINE_MUTABLE_OBJECT_REF_METHODS (Mutator, ObjectRef, MutatorNode)
 
- Public Member Functions inherited from tvm::runtime::ObjectRef
 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 Objectget () const
 
const Objectoperator-> () 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 (PyMutatorNode::FInitializeWithTuneContext f_initialize_with_tune_context, PyMutatorNode::FApply f_apply, PyMutatorNode::FAsString f_as_string)
 Create a mutator with customized methods on the python-side. More...
 

Additional Inherited Members

- Public Types inherited from tvm::runtime::ObjectRef
using ContainerType = Object
 type indicate the container type. More...
 
- Static Public Attributes inherited from tvm::runtime::ObjectRef
static constexpr bool _type_is_nullable = true
 
- Protected Member Functions inherited from tvm::runtime::ObjectRef
Objectget_mutable () const
 
- Static Protected Member Functions inherited from tvm::runtime::ObjectRef
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...
 
- Protected Attributes inherited from tvm::runtime::ObjectRef
ObjectPtr< Objectdata_
 Internal pointer that backs the reference. More...
 

Detailed Description

Managed reference to MutatorNode.

See also
MutatorNode

Member Function Documentation

◆ MutateComputeLocation()

static Mutator tvm::meta_schedule::Mutator::MutateComputeLocation ( )
static

Create a Mutator that mutates the outcome of SampleComputeLocation.

Returns
The mutator created

◆ MutateParallel()

static Mutator tvm::meta_schedule::Mutator::MutateParallel ( int64_t  max_jobs_per_core)
static

Create a Mutator that mutates the parallel extent.

Parameters
max_jobs_per_coreThe maximum number of parallel jobs per core.
Returns
The created mutator.

◆ MutateThreadBinding()

static Mutator tvm::meta_schedule::Mutator::MutateThreadBinding ( )
static

Create a Mutator that mutates auto thread binding.

Returns
The mutator created

◆ MutateTileSize()

static Mutator tvm::meta_schedule::Mutator::MutateTileSize ( )
static

Create a Mutator that mutates the decision of instruction Sample-Perfect-Tile.

◆ MutateUnroll()

static Mutator tvm::meta_schedule::Mutator::MutateUnroll ( )
static

Create a Mutator that mutates auto unroll step.

Returns
The mutator created

◆ PyMutator()

static Mutator tvm::meta_schedule::Mutator::PyMutator ( PyMutatorNode::FInitializeWithTuneContext  f_initialize_with_tune_context,
PyMutatorNode::FApply  f_apply,
PyMutatorNode::FAsString  f_as_string 
)
static

Create a mutator with customized methods on the python-side.

Parameters
f_initialize_with_tune_contextThe packed function of InitializeWithTuneContext.
f_applyThe packed function of Apply.
f_as_stringThe packed function of AsString.
Returns
The mutator created.

◆ TVM_DEFINE_MUTABLE_OBJECT_REF_METHODS()

tvm::meta_schedule::Mutator::TVM_DEFINE_MUTABLE_OBJECT_REF_METHODS ( Mutator  ,
ObjectRef  ,
MutatorNode   
)

The documentation for this class was generated from the following file: