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

[oneDNN] Extend shape of elementwise_add/sub for swin_transformer #59421

Merged
merged 7 commits into from
Dec 1, 2023

Conversation

LLee233
Copy link
Contributor

@LLee233 LLee233 commented Nov 27, 2023

PR types

Performance optimization

PR changes

Others

Description

This PR together with #59394 are aiming for optimizing swin_transformer in #59252.

The reported regression is caused by perf regression of elementwise_add/sub and fused matmul. Due to rare input shapes, these two kernels can not utilize corresponding broadcast on oneDNN, hence the regression. Here we workaround to extend shape of input/residual_data and keep utilizing optimization of oneDNN

Copy link

paddle-bot bot commented Nov 27, 2023

你的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 the contributor External developers label Nov 27, 2023
@LLee233
Copy link
Contributor Author

LLee233 commented Nov 29, 2023

Hi @yuanlehome, could you please help check CI coverage? Since I saw the result is kind of unexpected, where header file got 0% coverage... However the upper level code (in elementwise_kernel.cc) got called thousands of times, and there is no condition causing return or something before entering header file. Thanks!

@LLee233
Copy link
Contributor Author

LLee233 commented Nov 30, 2023

@xinyu-intel, @vivienfanghuagood, @yuanlehome, hi, would you mind helping review this PR? Thanks~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers Intel
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants