-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
[TensorIR][M2a] Decompose-Reduction #9041
Conversation
Sorry I have a deadline on Monday...Will review do after that |
Stmt VisitStmt_(const SeqStmtNode* seq) final { | ||
Array<Stmt> new_stmts; | ||
new_stmts.reserve(seq->seq.size()); | ||
for (const Stmt& old_stmt : seq->seq) { | ||
new_stmts.push_back(VisitStmt(old_stmt)); | ||
} | ||
return SeqStmt::Flatten(new_stmts); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we need special handling of SeqStmt btw?
@spectrometerHBH Sorry for the delay! I think I finally did a complete with the code review. Let me know if it makes sense to you |
@junrushao1994 Thanks!I might be slow to response in the next 2 days |
Would be nice if we could get this merged this week or weekend :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@spectrometerHBH and I discussed for quite a few days and finally addressed all my concerns. Thanks for the great effort!
This PR is part of the TensorIR upstreaming effort (apache#7527), which adds the `decompose-reduction` scheduling primitive. Co-authored-by: Junru Shao <junrushao1994@gmail.com> Co-authored-by: Ruihang Lai <lairuihangdongdong@qq.com> Co-authored-by: Hongyi Jin <3231950289@qq.com> Co-authored-by: Wuwei Lin <wuwei@apache.org> Co-authored-by: Siyuan Feng <Hzfengsy@sjtu.edu.cn>
This PR is part of the TensorIR upstreaming effort (apache#7527), which adds the `decompose-reduction` scheduling primitive. Co-authored-by: Junru Shao <junrushao1994@gmail.com> Co-authored-by: Ruihang Lai <lairuihangdongdong@qq.com> Co-authored-by: Hongyi Jin <3231950289@qq.com> Co-authored-by: Wuwei Lin <wuwei@apache.org> Co-authored-by: Siyuan Feng <Hzfengsy@sjtu.edu.cn>
This PR is part of the TensorIR upstreaming effort (#7527), which adds the following schedule primitives:
decompose_reduction
Co-authored-by: Junru Shao junrushao1994@gmail.com
Co-authored-by: Ruihang Lai lairuihangdongdong@qq.com
Co-authored-by: Hongyi Jin 3231950289@qq.com
Co-authored-by: Wuwei Lin wuwei@apache.org
Co-authored-by: Siyuan Feng Hzfengsy@sjtu.edu.cn