-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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 PRelu BF16/FP32 FWD/BWD kernels #33878
Conversation
Thanks for your contribution! |
Thank you, I'll delete that. I am glad to know that information |
Unfortunately disabling check_dygraph that you have mentioned is only in check_output_with_place. The code doesn't work since in check_grad_with_place check_dygraph is not disabled. |
Since tests will not pass without that line, I will add it back |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
python/paddle/fluid/tests/unittests/mkldnn/test_prelu_mkldnn_op.py
Outdated
Show resolved
Hide resolved
python/paddle/fluid/tests/unittests/mkldnn/test_prelu_mkldnn_op.py
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
This reverts commit 9dd9a21.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
PR types
New features
PR changes
OPs
Describe
Added PRelu BF16/FP32 FWD/BWD kernels
Profiling before this PR:
Profiling after this PR:
So it made ~88% speedup, measured with Intel(R) Core(TM) i9-9940X CPU @ 3.30GHz on mobilefacenet model
It's also a solution for this issue