-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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] Support injective group fusion #61197
Conversation
… inject_op_merge
…e/Paddle into inject_op_merge
// vertical relation: 1.can compute inline | ||
if (producer->result(0).use_count() == 1) { |
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.
这是能融合slice/concat的tricky代码吗?
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.
是的,这里的判断不算很tricky,如果融合规则明确的话,后面是可以直接使用的
… inject_op_merge
@@ -668,7 +672,7 @@ GroupList OpFusionPassInternal( | |||
ss << "\n"; | |||
} | |||
} | |||
VLOG(6) << ss.str(); | |||
VLOG(1) << ss.str(); |
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.
VLOG mismatch?
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.
just for debug, will change back before merging
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.
LGTM
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.
LGTM
PR types
Others
PR changes
Others
Description
Pcard-73448
RoPE子图静态shape下在前端支持将gather_nd、slice与concat算子融合到一个group中。

测试脚本:
FLAGS_cinn_convert_static_dim_to_dynamic_dim=2048:S0 FLAGS_cinn_bucket_compile=True ctest -R test_rope -V