-
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
[oneDNN] Extend shape of elementwise_add/sub for swin_transformer #59421
Conversation
你的PR提交成功,感谢你对开源项目的贡献! |
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! |
@xinyu-intel, @vivienfanghuagood, @yuanlehome, hi, would you mind helping review this PR? Thanks~ |
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