Skip to content

[PIR] Fix shape mismatch bug in Save&Load #69153

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

Merged
merged 9 commits into from
Nov 8, 2024

Conversation

chen2016013
Copy link
Contributor

@chen2016013 chen2016013 commented Nov 4, 2024

PR Category

Operator Mechanism

PR Types

Bug fixes

Description

pcard-67164
报错:
28ea8cc2203b9025f3e498c2103cc8e0

错误分析:
Combine op的verify函数要求输入输出的type相等,但后续执行时,while改变了输出的shape(yield变量与原有变量shape不一致时设为-1)。该模型后续的Pass中存在Verify调用,造成错误。

方案:
考虑到不能直接关闭Pass的Verify,目前解决方法是添加Combine op针对动态shape的判等,但未来还需要支持更多op和type

Copy link

paddle-bot bot commented Nov 4, 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.

Copy link
Contributor

@xiaoguoguo626807 xiaoguoguo626807 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@changeyoung98 changeyoung98 left a comment

Choose a reason for hiding this comment

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

LGTM

@chen2016013 chen2016013 merged commit 3ed9de3 into PaddlePaddle:develop Nov 8, 2024
28 checks passed
@chen2016013 chen2016013 deleted the test1104 branch December 19, 2024 09:12
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