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

modified the python/paddle/amp/auto_cast.py to fix bug #55364

Merged
merged 5 commits into from
Jul 26, 2023

Conversation

tianhaodongbd
Copy link
Contributor

PR types

Bug fixes

PR changes

APIs

Description

card-70458
修复“pr10119导致多个fp16模型运行失败”问题,修改了python/paddle/amp/auto_cast.py文件中的amp_decorate()和amp_guard()函数.

@paddle-bot
Copy link

paddle-bot bot commented Jul 12, 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.

@paddle-ci-bot
Copy link

paddle-ci-bot bot commented Jul 20, 2023

Sorry to inform you that ea34f38's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

@@ -402,6 +404,7 @@ def amp_guard(
if not enable:
amp_level = AMP_LEVEL.O0
amp_dtype = "float32"
# amp_global_state().amp_dtype = amp_dtype
Copy link
Contributor

Choose a reason for hiding this comment

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

这里注释记得删除

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已删除

@@ -477,6 +480,7 @@ def _set_multi_precision(optimizer, multi_precision):
)

optimizer = (
# optimizer._inner_optimizer
Copy link
Contributor

Choose a reason for hiding this comment

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

这里注释删掉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已删除

@zhangting2020 zhangting2020 merged commit 1e50d7c into PaddlePaddle:develop Jul 26, 2023
27 checks passed
wz1qqx pushed a commit to wz1qqx/Paddle that referenced this pull request Jul 31, 2023
tianhaodongbd added a commit to tianhaodongbd/Paddle that referenced this pull request Aug 2, 2023
jinjidejinmuyan pushed a commit to jinjidejinmuyan/Paddle that referenced this pull request Aug 30, 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

2 participants