-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
[CINN] optimize symbol shape dim expr substitute in lower_cinn_fusion… #62951
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
❌ The PR is not created using PR's template. You can refer to this Demo. |
const std::unordered_set<symbol::DimExpr>& exprs) { | ||
auto judge_unary = | ||
[&](const symbol::DimExpr& data_of_expr) { | ||
if (data_of_expr.isa<std::int64_t>()) return false; |
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.
对于像S3
这样单个的符号可以不做替换,在一些情况下就不需要对Group重新推导符号了。
while (!zero_indegree_ops.empty()) { | ||
auto op = zero_indegree_ops.front(); | ||
InferSymbolicShapeForOperation(op, local_shape_analysis); |
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.
group内里的 op list 满足拓扑序,可以直接遍历调用
8111b7e
to
8f9b791
Compare
…_op_pass Signed-off-by: ZelinMa557 <[email protected]>
8f9b791
to
fcd2274
Compare
PR Category
CINN
PR Types
Devs
Description