|
tvm
|
The SequentialObj contains a set of passes that transform Relax programs from one AST to another semantically equivalent one. More...
#include <transform.h>
Public Member Functions | |
| SequentialObj (PassInfo pass_info) | |
| SequentialObj (ffi::UnsafeInit tag) | |
| PassInfo | Info () const override |
| Get the pass information/meta data. | |
| IRModule | operator() (IRModule mod, const PassContext &pass_ctx) const final |
| Perform optimizations on a series of passes. The aforementioned typical pass manager jobs could be done by it. This function could be overloaded to focus on different metrics, i.e. performance, memory footprint, etc. | |
| TVM_FFI_DECLARE_OBJECT_INFO_FINAL ("transform.Sequential", SequentialObj, PassObj) | |
Public Member Functions inherited from tvm::transform::PassObj | |
| virtual | ~PassObj () |
| IRModule | operator() (IRModule mod) const |
| Transform mod using the default PassContext in the current scope. | |
| TVM_FFI_DECLARE_OBJECT_INFO ("transform.Pass", PassObj, ffi::Object) | |
Static Public Member Functions | |
| static void | RegisterReflection () |
Public Attributes | |
| PassInfo | pass_info |
| tvm::ffi::Array< Pass > | passes |
| A list of passes that used to compose a sequential pass. | |
The SequentialObj contains a set of passes that transform Relax programs from one AST to another semantically equivalent one.
One example of this level of pass is that the pass manager needs to correctly perform a host of optimizations with a given optimization level and disabled passes.
|
inlineexplicit |
|
inlineexplicit |
|
inlineoverridevirtual |
Get the pass information/meta data.
Implements tvm::transform::PassObj.
|
finalvirtual |
Perform optimizations on a series of passes. The aforementioned typical pass manager jobs could be done by it. This function could be overloaded to focus on different metrics, i.e. performance, memory footprint, etc.
| mod | The module that these passes are applied on. |
| pass_ctx | The context that these passes execute on. |
Implements tvm::transform::PassObj.
|
inlinestatic |
| tvm::transform::SequentialObj::TVM_FFI_DECLARE_OBJECT_INFO_FINAL | ( | "transform.Sequential" | , |
| SequentialObj | , | ||
| PassObj | |||
| ) |
| PassInfo tvm::transform::SequentialObj::pass_info |
| tvm::ffi::Array<Pass> tvm::transform::SequentialObj::passes |
A list of passes that used to compose a sequential pass.