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

【CINN】Optimzie reshape related fusion #53066

Merged
merged 1 commit into from Apr 19, 2023

Conversation

JiabinYang
Copy link
Contributor

@JiabinYang JiabinYang commented Apr 19, 2023

PR types

Performance optimization

PR changes

Others

Describe

Pcard-67010
This PR allow xshape not used in CINN..
before:
6cc1acce103ee256266b0d9e545013c5
after:
afb99187c74652f8561eed9d7bff92c3

@paddle-bot
Copy link

paddle-bot bot commented Apr 19, 2023

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@@ -527,9 +535,12 @@ void AnalyseClusterVariables(
// remove output node from cluster_inputs,
// and add cluster_internals node
for (auto* var_node : *cluster_outputs) {
if (cluster_inputs->count(var_node) > 0) {
if ((cluster_inputs->count(var_node) > 0) ||
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIT:

Can we write:
if (cluster_inputs->count(var_node) > 0 || unused_outputs.count(var_node->Name())) without many parentheses?

Copy link
Contributor

@cyber-pioneer cyber-pioneer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JiabinYang JiabinYang merged commit c29dc34 into PaddlePaddle:develop Apr 19, 2023
23 of 24 checks passed
lijialin03 pushed a commit to lijialin03/Paddle that referenced this pull request Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants