Skip to content

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

Closed
wants to merge 33 commits into from

Conversation

Hmm-1224
Copy link
Contributor

@Hmm-1224 Hmm-1224 commented Mar 5, 2025

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.

Copy link

google-cla bot commented Mar 5, 2025

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.

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))
Copy link
Contributor

Choose a reason for hiding this comment

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

not correct

@codecov-commenter
Copy link

codecov-commenter commented Mar 5, 2025

Codecov Report

Attention: Patch coverage is 0% with 15 lines in your changes missing coverage. Please review.

Project coverage is 80.12%. Comparing base (eb1f844) to head (251b8ec).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
keras/src/backend/openvino/numpy.py 0.00% 15 Missing ⚠️
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     
Flag Coverage Δ
keras 79.95% <0.00%> (-2.32%) ⬇️
keras-jax 64.01% <0.00%> (-0.02%) ⬇️
keras-numpy 58.82% <0.00%> (-0.03%) ⬇️
keras-openvino ?
keras-tensorflow 64.45% <0.00%> (-0.03%) ⬇️
keras-torch 64.07% <0.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@rkazants rkazants left a comment

Choose a reason for hiding this comment

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

@Hmm-1224, please close this PR. dot support was implemented here correctly: #20982

@Hmm-1224 Hmm-1224 closed this Mar 8, 2025
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