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 cross_entropy calculation error #32545

Merged
merged 2 commits into from
Apr 27, 2021

Conversation

yghstill
Copy link
Contributor

@yghstill yghstill commented Apr 25, 2021

PR types

Bug fixes

PR changes

APIs

Describe

Fix calculation error of paddle.nn.functional.cross_entropy when setting ignore_index and reduction='mean' .

@paddle-bot-old
Copy link

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

@huangjun12
Copy link
Contributor

LGTM

Copy link
Contributor

@HydrogenSulfate HydrogenSulfate left a comment

Choose a reason for hiding this comment

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

修改处下面的静态图也可以类似地修改一下吧

@yghstill
Copy link
Contributor Author

修改处下面的静态图也可以类似地修改一下吧

Done, thx.

qingqing01
qingqing01 previously approved these changes Apr 26, 2021
@jerrywgz jerrywgz merged commit 23d3e36 into PaddlePaddle:develop Apr 27, 2021
@yghstill yghstill deleted the fix_cross_entropy branch April 27, 2021 05:21
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.

5 participants