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

Fix LayerNorm Problem Release2.1 #33534

Merged
merged 2 commits into from
Jun 12, 2021
Merged

Fix LayerNorm Problem Release2.1 #33534

merged 2 commits into from
Jun 12, 2021

Conversation

zhiboniu
Copy link
Contributor

@zhiboniu zhiboniu commented Jun 11, 2021

PR types

Bug fixes

PR changes

OPs

Describe

优化LayerNorm计算过程。
同时修复如下问题:
DLTP-25782 [Bug]
DLTP-26400 [Bug]

修复LayerNorm在大数输入时输出Nan的bug。
DLTP-28680 [Bug]

修复LayerNorm在归一化维度长度<kMaxBlockDim时的BlockDim计算错误bug。

修复LayerNorm在大输入shape时输出结果0的bug。

cherry-pick from Fix LayerNorm Problem #33420

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@jeff41404
Copy link
Contributor

LGTM
reviewed in 33420

Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

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

LGTM

@XiaoguangHu01 XiaoguangHu01 merged commit a43e1fa into PaddlePaddle:release/2.1 Jun 12, 2021
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