-
Notifications
You must be signed in to change notification settings - Fork 5.9k
[PIR][Dy2St] Fix ReshapeOp cannot inplace in PIR mode #69428
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
[PIR][Dy2St] Fix ReshapeOp cannot inplace in PIR mode #69428
Conversation
…-inplace-in-dy2st
|
你的PR提交成功,感谢你对开源项目的贡献! |
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.
Copilot wasn't able to review any files in this pull request.
Files not reviewed (5)
- paddle/fluid/eager/to_static/run_program_op_node.h: Language not supported
- paddle/fluid/framework/executor_cache.cc: Language not supported
- paddle/fluid/framework/executor_cache.h: Language not supported
- paddle/fluid/pir/transforms/general/inplace_pass.cc: Language not supported
- paddle/fluid/pir/transforms/general/inplace_pass.h: Language not supported
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 Category
Execute Infrastructure
PR Types
Bug fixes
Description
based on #69142
PIR 下,动转静 ReshapeOP 在存在反向的时候,输入会被反向用到(ShadowOutput),导致 ReshapeOp 不能 inplace,但这个输入实际是 no_need_buffer 的,因此在 Inplace Pass 中传入 no_need_buffer 信息,以确保其能成功 inplace
PCard-66972