tvm_tirx.ir.transform.ModulePass#
- class tvm_tirx.ir.transform.ModulePass(pass_info)#
Bases:
PassA pass whose callback receives and returns a complete IRModule.
Create instances with
module_pass(), which accepts a function or a class definingtransform_module. Callafter = pass_object(before)to execute the callback under the current PassContext. Its callback, rather than this wrapper class, defines how the IR changes; seemodule_pass()for a TVMScript before/after example.- property pass_info#