-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Add an elementwise + activation fusion pass. #36541
Conversation
Thanks for your contribution! |
✅ This PR's description meets the template requirements! |
@piotrekobiIntel ,@Silv3S Please review |
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.
A lot of really good work, but I have left some comments
paddle/fluid/operators/elementwise/mkldnn/elementwise_mkldnn_op.h
Outdated
Show resolved
Hide resolved
python/paddle/fluid/tests/unittests/ir/inference/test_mkldnn_elt_act_fuse_pass.py
Outdated
Show resolved
Hide resolved
python/paddle/fluid/tests/unittests/ir/inference/test_mkldnn_elt_act_fuse_pass.py
Outdated
Show resolved
Hide resolved
python/paddle/fluid/tests/unittests/ir/inference/test_mkldnn_elt_act_fuse_pass.py
Show resolved
Hide resolved
python/paddle/fluid/tests/unittests/ir/inference/test_mkldnn_elt_act_fuse_pass.py
Outdated
Show resolved
Hide resolved
python/paddle/fluid/tests/unittests/ir/inference/test_mkldnn_elt_act_fuse_pass.py
Outdated
Show resolved
Hide resolved
@baoachun Please tell me, should I select this alternative solution instead of custom op from this PR? |
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
Performance optimization
PR changes
Others
Describe
Add a pass which fuse element wise operation with an activation: