Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Tracking Issue] Adding SplitModuleByTag pass #70

Open
yzh119 opened this issue Nov 15, 2022 · 0 comments
Open

[Tracking Issue] Adding SplitModuleByTag pass #70

yzh119 opened this issue Nov 15, 2022 · 0 comments
Assignees

Comments

@yzh119
Copy link
Member

yzh119 commented Nov 15, 2022

Pitch

Currently, we use PreservePreprocess and RemovePreprocess pass to filter and split a given IRModule by tag preprocessing, however, format decomposition does not always produce preprocess blocks, some of them are post-processing blocks (e.g. when we transform the format of the output matrix. We should design a more general module split pass.

Proposed Solution

mod_preprocess, mod_compute = tir.transform.SplitModuleByTag("preprocess")(mod)
mod_compute, mod_postprocess = tir.transform.SplitModuleByTag("postprocess", reverse=True)(mod)
@yzh119 yzh119 moved this to 🆕 New in SparseTIR Nov 15, 2022
@yzh119 yzh119 added this to SparseTIR Nov 15, 2022
@yzh119 yzh119 removed this from SparseTIR Nov 15, 2022
@yzh119 yzh119 moved this to TODO in SparseTIR Nov 15, 2022
@yzh119 yzh119 added this to SparseTIR Nov 15, 2022
@yzh119 yzh119 self-assigned this Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: TODO
Development

No branches or pull requests

1 participant