Skip to content

[OpenVino BackEnd] support np.diagnol for ov BackEnd #21156

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

chiruu12
Copy link
Contributor

@fchollet, could you please review?

@codecov-commenter
Copy link

codecov-commenter commented Apr 11, 2025

Codecov Report

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

Project coverage is 79.85%. Comparing base (dd9132f) to head (833797e).

Files with missing lines Patch % Lines
keras/src/backend/openvino/numpy.py 0.00% 70 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #21156      +/-   ##
==========================================
- Coverage   82.59%   79.85%   -2.74%     
==========================================
  Files         564      564              
  Lines       54407    54477      +70     
  Branches     8449     8459      +10     
==========================================
- Hits        44936    43503    -1433     
- Misses       7396     8959    +1563     
+ Partials     2075     2015      -60     
Flag Coverage Δ
keras 79.67% <0.00%> (-2.73%) ⬇️
keras-jax 63.72% <0.00%> (-0.09%) ⬇️
keras-numpy 58.85% <0.00%> (-0.08%) ⬇️
keras-openvino ?
keras-tensorflow 64.13% <0.00%> (-0.09%) ⬇️
keras-torch 63.81% <0.00%> (-0.09%) ⬇️

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.

@chiruu12
Copy link
Contributor Author

@fchollet, sir I feel like my code is not upto the best standards will it be possible to ask for your guidance regarding the same?


if node_rank < 2:
raise ValueError(
"Input tensor must have at least rank 2 for diagonal extraction."
Copy link
Collaborator

Choose a reason for hiding this comment

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

In such error messages, specify the shape that was passed (makes debugging easier)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Understood sir will do any other changes that I should make?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In such error messages, specify the shape that was passed (makes debugging easier)

I hope it is right now sir!

@@ -81,7 +81,6 @@ NumpyOneInputOpsCorrectnessTest::test_conj
NumpyOneInputOpsCorrectnessTest::test_correlate
Copy link
Contributor

Choose a reason for hiding this comment

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

please also remove NumpyDtypeTest::test_diag line

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sir should I implement Diag as well?

Copy link
Contributor

Choose a reason for hiding this comment

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

you can see a line NumpyDtypeTest::test_diag above in this file. Please remove it as well to switch on tests

@chiruu12
Copy link
Contributor Author

@rkazants Sir, everything from my side is now done please check n confirm the error is due to diag not being implemented yet.
If there is anything more that i can do in this PR please let me know.
If not then i will start with the next backend implementation

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.

None yet

5 participants