-
Notifications
You must be signed in to change notification settings - Fork 19.6k
Implement dot function in OpenVINO backend for Keras #20987
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
Conversation
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
keras/src/backend/openvino/numpy.py
Outdated
if len(x.shape) == 2 and len(y.shape) == 1: | ||
y = ov_opset.unsqueeze(y, [1]) | ||
return ov_to_keras_type(ov_opset.squeeze(ov_opset.matmul(x, y), [1])) | ||
return ov_to_keras_type(ov_opset.matmul(x, y)) |
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.
not correct
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #20987 +/- ##
==========================================
- Coverage 82.45% 80.12% -2.33%
==========================================
Files 562 562
Lines 53303 53331 +28
Branches 8257 8264 +7
==========================================
- Hits 43949 42733 -1216
- Misses 7338 8633 +1295
+ Partials 2016 1965 -51
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Changes Made:
Implemented dot function in numpy.py inside the OpenVINO backend.
Removed the corresponding entry from excluded_concrete_tests.txt.
create pytest.ini in root dir
Testing:
Ran pytest to verify that the implementation works correctly.
Let me know if any additional modifications or refinements are needed.
@rkazants, please review.