-
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
Add int8 support for matmul+elementwise_add fuse pass #45077
Conversation
你的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 👍
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.
I can see that in many places there is if(residual)
maybe it is worth to break this pass into normal
version and residual
version?
If it will be done properly it should reduce risk of bugs in the future development. Readability of the code can be higher as well.
python/paddle/fluid/contrib/slim/quantization/quant2_int8_mkldnn_pass.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
@jiangjiajun Please start your review |
你的PR已合入Paddle库,请关注后续测试结果。 |
PR types
Performance optimization
PR changes
OPs
Describe
This PR add int8 support for
matmul_elementwise_add_mkldnn_fuse_pass
.Moreover I unified the order of passes in quantization with and without serialization, following the order of passes for use_mkldnn.