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

Add int8 support for matmul+elementwise_add fuse pass #45077

Merged
merged 2 commits into from Aug 22, 2022

Conversation

wozna
Copy link
Contributor

@wozna wozna commented Aug 11, 2022

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.

@paddle-bot
Copy link

paddle-bot bot commented Aug 11, 2022

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@paddle-bot paddle-bot bot added contributor External developers status: proposed labels Aug 11, 2022
@wozna wozna added Intel int8 and removed contributor External developers status: proposed labels Aug 11, 2022
@wozna wozna requested review from tsocha, jczaja and Silv3S August 11, 2022 11:47
Silv3S
Silv3S previously approved these changes Aug 11, 2022
Copy link
Member

@Silv3S Silv3S left a comment

Choose a reason for hiding this comment

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

LGTM 👍

paddle/fluid/framework/ir/graph_pattern_detector.cc Outdated Show resolved Hide resolved
paddle/fluid/framework/ir/mkldnn/cpu_quantize_pass.cc Outdated Show resolved Hide resolved
Copy link
Contributor

@tsocha tsocha left a 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.

Copy link
Contributor

@jczaja jczaja left a comment

Choose a reason for hiding this comment

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

LGTM

@wozna wozna requested a review from jiangjiajun August 22, 2022 13:51
@wozna
Copy link
Contributor Author

wozna commented Aug 22, 2022

@jiangjiajun Please start your review

@jczaja jczaja merged commit 9e5f3a3 into PaddlePaddle:develop Aug 22, 2022
@paddle-bot
Copy link

paddle-bot bot commented Aug 22, 2022

你的PR已合入Paddle库,请关注后续测试结果。
Your PR has been merged into the repository. An official integration test will be conducted later. Stay tuned.

@wozna wozna deleted the matmul_ele_int8 branch February 24, 2023 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants