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

[AMP Prim OP]support dropout prim ops bfloat16 dtype #54175

Merged

Conversation

Charles-hit
Copy link
Contributor

@Charles-hit Charles-hit commented May 29, 2023

PR types

Others

PR changes

Others

Description

Pcard-66975
PR改动:

  • 支持dropout组合算子拆解后bfloat16数据类型并添加单测。
  • 由于dropout p=0时直接return x,在静态图下求导是[],动态图下全1,动静行为不统一,通过在测试前插入assign修复dropout 在p=0时动态图静态图动转静三者测试结果不统一的问题。

@paddle-bot
Copy link

paddle-bot bot commented May 29, 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-bot
Copy link

paddle-bot bot commented May 29, 2023

❌ The PR is not created using PR's template. You can refer to this Demo.
Please use PR's template, it helps save our maintainers' time so that more developers get helped.

@Charles-hit Charles-hit changed the title support dropout prim ops bfloat16 dtype support dropout and activation prim ops bfloat16 dtype May 29, 2023
@Charles-hit Charles-hit force-pushed the support_dropout_prim_bf16 branch from 65513cd to b1cfb2d Compare May 30, 2023 03:12
@Charles-hit Charles-hit changed the title support dropout and activation prim ops bfloat16 dtype support dropout prim ops bfloat16 dtype May 30, 2023
@Charles-hit Charles-hit changed the title support dropout prim ops bfloat16 dtype [AMP Prim OP]support dropout prim ops bfloat16 dtype Jun 1, 2023
@cyber-pioneer
Copy link
Contributor

解释单侧修改的原因

@Charles-hit Charles-hit merged commit 0df9e4c into PaddlePaddle:develop Jun 1, 2023
@Charles-hit Charles-hit deleted the support_dropout_prim_bf16 branch June 1, 2023 12:02
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