tvm
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
tvm::meta_schedule::PostprocNode Class Referenceabstract

Rules to apply a postprocessor to a schedule. More...

#include <postproc.h>

Inheritance diagram for tvm::meta_schedule::PostprocNode:
Collaboration diagram for tvm::meta_schedule::PostprocNode:

Public Member Functions

virtual ~PostprocNode ()=default
 Virtual destructor. More...
 
virtual void InitializeWithTuneContext (const TuneContext &context)=0
 Initialize the design space generator with tuning context. More...
 
virtual bool Apply (const tir::Schedule &sch)=0
 Apply a postprocessor to the given schedule. More...
 
virtual Postproc Clone () const =0
 Clone the postprocessor. More...
 
 TVM_DECLARE_BASE_OBJECT_INFO (PostprocNode, Object)
 

Static Public Member Functions

static void RegisterReflection ()
 

Static Public Attributes

static constexpr const char * _type_key = "meta_schedule.Postproc"
 

Detailed Description

Rules to apply a postprocessor to a schedule.

Constructor & Destructor Documentation

◆ ~PostprocNode()

virtual tvm::meta_schedule::PostprocNode::~PostprocNode ( )
virtualdefault

Virtual destructor.

Member Function Documentation

◆ Apply()

virtual bool tvm::meta_schedule::PostprocNode::Apply ( const tir::Schedule sch)
pure virtual

Apply a postprocessor to the given schedule.

Parameters
schThe schedule to be post processed.
Returns
Whether the postprocessor was successfully applied.

Implemented in tvm::meta_schedule::PyPostprocNode.

◆ Clone()

virtual Postproc tvm::meta_schedule::PostprocNode::Clone ( ) const
pure virtual

Clone the postprocessor.

Returns
The cloned postprocessor.

Implemented in tvm::meta_schedule::PyPostprocNode.

◆ InitializeWithTuneContext()

virtual void tvm::meta_schedule::PostprocNode::InitializeWithTuneContext ( const TuneContext context)
pure virtual

Initialize the design space generator with tuning context.

Parameters
contextThe tuning context for initialization.
Note
This method is supposed to be called only once before every other method.

Implemented in tvm::meta_schedule::PyPostprocNode.

◆ RegisterReflection()

static void tvm::meta_schedule::PostprocNode::RegisterReflection ( )
inlinestatic

◆ TVM_DECLARE_BASE_OBJECT_INFO()

tvm::meta_schedule::PostprocNode::TVM_DECLARE_BASE_OBJECT_INFO ( PostprocNode  ,
Object   
)

Member Data Documentation

◆ _type_key

constexpr const char* tvm::meta_schedule::PostprocNode::_type_key = "meta_schedule.Postproc"
staticconstexpr

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