Class Pass#
Defined in File analysis.h
Inheritance Relationships#
Base Type#
public ffi::ObjectRef
Derived Type#
public tvm::transform::Sequential(Class Sequential)
Class Documentation#
-
class Pass : public ffi::ObjectRef#
Subclassed by tvm::transform::Sequential
Public Functions
-
inline IRModule operator()(IRModule mod) const#
Transform mod using the default PassContext in the current scope.
// If you do no longer need the input module // it is recommended to use std::move to move your input module. mod = pass(std::move(mod));
- Parameters:
mod – The module that an optimization pass runs on.
- Returns:
The transformed module.
-
IRModule operator()(IRModule mod, const PassContext &pass_ctx) const#
Transform mod using a functor under a given pass context.
- Parameters:
mod – The module that an optimization pass runs on.
pass_ctx – The pass context that can provide information for the optimization.
- Returns:
The transformed module.
-
inline explicit Pass(::tvm::ffi::UnsafeInit tag)#
-
inline __PtrType operator->() const#
-
inline __PtrType get() const#
-
inline IRModule operator()(IRModule mod) const#