20 #ifndef TVM_META_SCHEDULE_POSTPROC_H_ 21 #define TVM_META_SCHEDULE_POSTPROC_H_ 29 namespace meta_schedule {
57 static constexpr
const char*
_type_key =
"meta_schedule.Postproc";
97 static constexpr
const char*
_type_key =
"meta_schedule.PyPostproc";
122 TVM_DLL
static Postproc DisallowDynamicLoop();
128 TVM_DLL
static Postproc RewriteCooperativeFetch();
134 TVM_DLL
static Postproc RewriteParallelVectorizeUnroll();
139 TVM_DLL
static Postproc RewriteReductionBlock();
145 TVM_DLL
static Postproc RewriteUnboundBlock(
int max_threadblocks);
152 TVM_DLL
static Postproc RewriteTensorize(
bool vectorize_init_loop =
false);
163 TVM_DLL
static Postproc RewriteLayout();
170 #endif // TVM_META_SCHEDULE_POSTPROC_H_ The postprocessor with customized methods on the python-side.
Definition: postproc.h:62
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
Managed reference to PostprocNode.
Definition: postproc.h:105
FInitializeWithTuneContext f_initialize_with_tune_context
The packed function to the InitializeWithTuneContext function.
Definition: postproc.h:82
base class of all object containers.
Definition: object.h:167
FApply f_apply
The packed function to the Apply function.
Definition: postproc.h:84
#define TVM_DEFINE_MUTABLE_OBJECT_REF_METHODS(TypeName, ParentType, ObjectName)
Definition: object.h:744
Managed reference to ScheduleNode.
Definition: schedule.h:618
Managed reference to TuneContextNode.
Definition: tune_context.h:129
Visitor class to get the attributes of an AST/IR node. The content is going to be called for each fie...
Definition: reflection.h:52
static constexpr const char * _type_key
Definition: postproc.h:57
bool VerifyGPUCode(const PrimFunc &func, Map< String, PrimExpr > constraints)
Verify the correctness of a GPU code It will check the whether the amount of memory usage or the numb...
Rules to apply a postprocessor to a schedule.
Definition: postproc.h:36
Base class of all object reference.
Definition: object.h:511
TVM_DECLARE_BASE_OBJECT_INFO(PostprocNode, Object)
A managed object in the TVM runtime.
#define TVM_DECLARE_FINAL_OBJECT_INFO(TypeName, ParentType)
helper macro to declare type information in a final class.
Definition: object.h:671
FAsString f_as_string
The packed function to the AsString function.
Definition: postproc.h:86
virtual void InitializeWithTuneContext(const TuneContext &context)=0
Initialize the design space generator with tuning context.
virtual bool Apply(const tir::Schedule &sch)=0
Apply a postprocessor to the given schedule.
virtual ~PostprocNode()=default
Virtual destructor.
void VisitAttrs(tvm::AttrVisitor *v)
Definition: postproc.h:88
Reflection and serialization of compiler IR/AST nodes.
Type-erased function used across TVM API.
void VisitAttrs(tvm::AttrVisitor *v)
Definition: postproc.h:41