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

【PIR】modify segment_fault of Swintransformer model #69036

Merged
merged 3 commits into from
Oct 31, 2024

Conversation

xiaoguoguo626807
Copy link
Contributor

PR Category

Execute Infrastructure

PR Types

Bug fixes

Description

pcard-67164

swin_transformer 模型在pir 模式下多次调用save 会出现segment fault报错, 每次报错的位置随机。
原因是set_value的接口涉及到动转静inplace_map的写, inplace_map 是全局的,按照program 为key, value_dict 为value 记录inplace 关系,但是inplace_map add 的传参是default_main_program() 一直是老ir 的program。

Copy link

paddle-bot bot commented Oct 29, 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
Member

@SigureMo SigureMo left a comment

Choose a reason for hiding this comment

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

LGTMeow 🐾

@xiaoguoguo626807 xiaoguoguo626807 merged commit 973956f into PaddlePaddle:develop Oct 31, 2024
28 checks passed
@xiaoguoguo626807 xiaoguoguo626807 deleted the swin branch October 31, 2024 02:36
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.

2 participants