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

[Bug fix] Fix for matmul_v2 oneDNN op broadcasting when inputs dims have different lengths #38665

Merged
merged 2 commits into from
Jan 5, 2022

Conversation

jakpiase
Copy link
Contributor

@jakpiase jakpiase commented Jan 3, 2022

PR types

Bug fixes

PR changes

OPs

Describe

Fix for matmul_v2 oneDNN op broadcasting when inputs dims have different lengths. It fixes that scenario for both FWD and BWD kernels. I have also added UTs that are covering these different input lenght broadcasting scenarios. It is a fix for #38626. I have tested "test_mkldnn_matmulv2.py" file and every test is passing after my changes

@paddle-bot-old
Copy link

paddle-bot-old bot commented Jan 3, 2022

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@jakpiase jakpiase added the Intel label Jan 3, 2022
@lidanqing-intel
Copy link
Contributor

@baoachun Please review this PR.

@baoachun
Copy link
Contributor

baoachun commented Jan 4, 2022

Please see the latest comment in #38626

Copy link
Contributor

@baoachun baoachun left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@lidanqing-intel lidanqing-intel left a comment

Choose a reason for hiding this comment

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

LGTM

@lidanqing-intel
Copy link
Contributor

@Aganlengzi Could you please merge this PR. Baoachun has approved.

@Aganlengzi Aganlengzi merged commit 6792312 into PaddlePaddle:develop Jan 5, 2022
@baoachun
Copy link
Contributor

baoachun commented Jan 5, 2022

Hi @jakpiase, could you please cherry-pick this pr to branch 2.2 ? Thanks.

@lidanqing-intel lidanqing-intel changed the title Fix for matmul_v2 oneDNN op broadcasting when inputs dims have different lengths [Bug fix] Fix for matmul_v2 oneDNN op broadcasting when inputs dims have different lengths Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants