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
[INTEL_MKL] Enable MatMul + Bias + LeakyRelu fusion #45031
[INTEL_MKL] Enable MatMul + Bias + LeakyRelu fusion #45031
Conversation
7ee7621
to
dfb45cd
Compare
Merge conflict is resolved. Please review this PR. Thanks |
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.
Thank you for the PR and I'm sorry for the delay! I have a few minor comments.
Thanks for the review. The code is changed based on comments. |
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.
Thank you for the fixes! The PR looks good to me now.
@ezhulenev Could you please help take a look if the grappler parts are okay? I'll defer the approval to you.
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.
Thank you, Eugene!
(I'm approving too just so the PR status doesn't keep saying "changes requested".)
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.
@retonym Could you please look into the remapper test failures in Ubuntu CPU and Linux GPU CIs? Thank you!
[ RUN ] RemapperFuseMatMulWithBiasAndActivationTest.F32
tensorflow/core/grappler/optimizers/remapper_test.cc:699: Failure
Expected equality of these values:
node.op()
Which is: "Tanh"
"_FusedMatMul"
tensorflow/core/grappler/optimizers/remapper_test.cc:700: Failure
Expected: (node.input_size()) >= (3), actual: 1 vs 3
[ FAILED ] RemapperFuseMatMulWithBiasAndActivationTest.F32 (11 ms)
The UT failure is fixed. |
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.
Thank you for the quick fix! Merry Christmas and happy holidays to you too! :)
This PR enables MatMul + Bias + LeakyRelu fusion with both MKL and Eigen implementation