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] Fix gs op transform rules #64655

Merged
merged 2 commits into from
May 29, 2024
Merged

Conversation

chen2016013
Copy link
Contributor

@chen2016013 chen2016013 commented May 28, 2024

PR Category

CINN

PR Types

Bug fixes

Description

Pcard-67164
Fix gs op transform rules
原来的转换过程中,gs op转换后的对应shape op没有使用ir mapping里的对应value,而是使用了原始fusion op内前置op的输出。本PR修复这一问题

Copy link

paddle-bot bot commented May 28, 2024

你的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.

rewriter.EraseOp(cloned_op);
}

ir_mapping.Add(cloned_op->result(0), out_replacement.value());
Copy link
Contributor

Choose a reason for hiding this comment

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

cloned_op还没有被使用的话是不是也不需要加mapping了?

Aurelius84
Aurelius84 previously approved these changes May 28, 2024
@chen2016013 chen2016013 merged commit 904dddc into PaddlePaddle:develop May 29, 2024
32 checks passed
@chen2016013 chen2016013 deleted the test0528 branch June 13, 2024 03:09
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.

3 participants