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

Fixed a bug: op input was modified to 'nan' #32937

Merged
merged 14 commits into from
Jun 7, 2021
Merged

Conversation

AshburnLee
Copy link
Contributor

@AshburnLee AshburnLee commented May 17, 2021

PR types

Bug fixes

PR changes

OPs

Describe

PR功能

使用op benchmark时发现,当输入数据量小于某个值时,python 端 log_softmax 接口的输入值经过计算过后 会被改变为nan。输出正常。

修复前后对比

  • 修复前现象如下:

截屏2021-05-17 15 28 49

  • 修复后:

截屏2021-05-17 15 25 23

@paddle-bot-old
Copy link

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

@AshburnLee AshburnLee changed the title Bug Fixed a bug: op input was modified to 'nan' May 17, 2021
@paddle-bot-old
Copy link

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

Copy link
Contributor

@zhupengyang zhupengyang 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

@Xreki Xreki left a comment

Choose a reason for hiding this comment

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

LGTM

@Xreki Xreki merged commit 4da15e6 into PaddlePaddle:develop Jun 7, 2021
@AshburnLee AshburnLee deleted the bug branch June 7, 2021 07:50
AshburnLee added a commit to AshburnLee/Paddle that referenced this pull request Jun 8, 2021
lanxianghit pushed a commit that referenced this pull request Jun 11, 2021
…an' (#32937) (#33436)

使用op benchmark时发现,当输入数据量小于某个值时,python 端 log_softmax 接口的输入值经过计算过后 会被改变为nan。输出正常。

cherry-pick自 #32937
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