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

[OpenVINO Backend] Support: Implemented numpy.digitize for keras ov backend #21087

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

Conversation

geeky33
Copy link

@geeky33 geeky33 commented Mar 25, 2025

DETAILS

  • Implemented a digitize function that mimics NumPy’s behavior using OpenVINO backend operations.
  • Expanded the input tensor and broadcasted the bins tensor to enable elementwise comparisons for each element.
  • Converted boolean comparison results to integer values and reduced over the broadcasted dimension to compute the digitized indices.

Ticket Id:

#29118

Concerned Authority:

CC: @rkazants

@geeky33 geeky33 changed the title [OpenVINO Backend] Support: Implemented numpy.diagonal for keras ov backend [OpenVINO Backend] Support: Implemented numpy.digitize for keras ov backend Mar 25, 2025
@codecov-commenter
Copy link

codecov-commenter commented Mar 25, 2025

Codecov Report

Attention: Patch coverage is 4.08163% with 47 lines in your changes missing coverage. Please review.

Project coverage is 82.61%. Comparing base (8333ef4) to head (b0d36bf).

Files with missing lines Patch % Lines
keras/src/backend/openvino/numpy.py 4.08% 47 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master   #21087      +/-   ##
==========================================
- Coverage   82.68%   82.61%   -0.08%     
==========================================
  Files         564      564              
  Lines       54114    54161      +47     
  Branches     8410     8418       +8     
==========================================
  Hits        44743    44743              
- Misses       7293     7340      +47     
  Partials     2078     2078              
Flag Coverage Δ
keras 82.42% <4.08%> (-0.08%) ⬇️
keras-jax 63.98% <0.00%> (-0.06%) ⬇️
keras-numpy 59.07% <0.00%> (-0.06%) ⬇️
keras-openvino 32.83% <4.08%> (-0.03%) ⬇️
keras-tensorflow 64.31% <0.00%> (-0.06%) ⬇️
keras-torch 64.03% <0.00%> (-0.06%) ⬇️

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

@geeky33 Please remove relevant tests from excluded_concrete_tests.txt file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Assigned Reviewer
Development

Successfully merging this pull request may close these issues.

4 participants