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

- Added Epsilon (preventing softmax output from being too small) for softmax MKLDNN op #9993

Merged
merged 2 commits into from
Apr 18, 2018

Conversation

jczaja
Copy link
Contributor

@jczaja jczaja commented Apr 17, 2018

Changes here are introducing EPS adding to output of Fluid Softmax MKLDNN operator. This is done only in training mode (is_test=False) to avoid +-INF values triggered by cross_entropy operator.

- EPS added to softmax mkldnn primitive outcome is limited to training
phase

Fixes after review

clang format fixes

clang format fixes
@kbinias kbinias requested a review from luotao1 April 17, 2018 18:53
Copy link
Contributor

@luotao1 luotao1 left a comment

Choose a reason for hiding this comment

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

LGTM

@luotao1 luotao1 merged commit 2617d8b into PaddlePaddle:develop Apr 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants