20 #ifndef TVM_META_SCHEDULE_POSTPROC_H_ 21 #define TVM_META_SCHEDULE_POSTPROC_H_ 29 namespace meta_schedule {
64 static constexpr
const char*
_type_key =
"meta_schedule.Postproc";
111 TVM_DLL
static Postproc DisallowDynamicLoop();
117 TVM_DLL
static Postproc RewriteCooperativeFetch();
123 TVM_DLL
static Postproc RewriteParallelVectorizeUnroll();
128 TVM_DLL
static Postproc RewriteReductionBlock();
134 TVM_DLL
static Postproc RewriteUnboundBlock(
int max_threadblocks);
141 TVM_DLL
static Postproc RewriteTensorize(
bool vectorize_init_loop =
false);
157 TVM_DLL
static Postproc RewriteLayout();
199 static constexpr
const char*
_type_key =
"meta_schedule.PyPostproc";
206 #endif // TVM_META_SCHEDULE_POSTPROC_H_ The postprocessor with customized methods on the python-side.
Definition: postproc.h:173
runtime implementation for LibTorch/TorchScript.
Definition: analyzer.h:36
runtime::TypedPackedFunc< void(const TuneContext &)> FInitializeWithTuneContext
The function type of InitializeWithTuneContext method.
Definition: postproc.h:78
Managed reference to PostprocNode.
Definition: postproc.h:72
FInitializeWithTuneContext f_initialize_with_tune_context
The packed function to the InitializeWithTuneContext function.
Definition: postproc.h:180
runtime::TypedPackedFunc< Postproc()> FClone
Clone the postprocessor.
Definition: postproc.h:89
base class of all object containers.
Definition: object.h:167
FApply f_apply
The packed function to the Apply function.
Definition: postproc.h:182
#define TVM_DEFINE_MUTABLE_OBJECT_REF_METHODS(TypeName, ParentType, ObjectName)
Definition: object.h:744
Managed reference to ScheduleNode.
Definition: schedule.h:736
Managed reference to TuneContextNode.
Definition: tune_context.h:95
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
runtime::TypedPackedFunc< String()> FAsString
Get the postprocessor function as string with name.
Definition: postproc.h:94
static constexpr const char * _type_key
Definition: postproc.h:64
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:37
Array, container representing a contiguous sequence of ObjectRefs.
Definition: array.h:289
Please refer to TypedPackedFunc<R(Args..)>.
Definition: packed_func.h:60
Base class of all object reference.
Definition: object.h:511
TVM_DECLARE_BASE_OBJECT_INFO(PostprocNode, Object)
virtual Postproc Clone() const =0
Clone the postprocessor.
FClone f_clone
The packed function to the Clone function.
Definition: postproc.h:184
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:186
virtual void InitializeWithTuneContext(const TuneContext &context)=0
Initialize the design space generator with tuning context.
runtime::TypedPackedFunc< bool(const tir::Schedule &)> FApply
Apply a postprocessor to the given schedule.
Definition: postproc.h:84
virtual bool Apply(const tir::Schedule &sch)=0
Apply a postprocessor to the given schedule.
bool VerifyVTCMLimit(const PrimFunc &func, Integer limit)
Verifies that the VTCM usage of the given prim_func is within the provided limit. ...
virtual ~PostprocNode()=default
Virtual destructor.
void VisitAttrs(tvm::AttrVisitor *v)
Definition: postproc.h:188
Reflection and serialization of compiler IR/AST nodes.
Type-erased function used across TVM API.
void VisitAttrs(tvm::AttrVisitor *v)
Definition: postproc.h:42