Skip to content

[Keras 3 OpenVINO Backend]: Support numpy.log1p operation #29487 #21129

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 6 commits into
base: master
Choose a base branch
from

Conversation

victorgearhead
Copy link

@victorgearhead victorgearhead commented Apr 3, 2025

@rkazants
Details: Added support numpy.log1p operation and a successful test run. Code

can you review please ? also i tried to fix the pre-commit run error but could not solve it, can you please help me with it ?

@codecov-commenter
Copy link

codecov-commenter commented Apr 3, 2025

Codecov Report

Attention: Patch coverage is 70.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 82.69%. Comparing base (e61e83d) to head (e01dd8a).
Report is 14 commits behind head on master.

Files with missing lines Patch % Lines
keras/src/backend/openvino/numpy.py 70.00% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master   #21129    +/-   ##
========================================
  Coverage   82.68%   82.69%            
========================================
  Files         564      564            
  Lines       54132    54232   +100     
  Branches     8411     8425    +14     
========================================
+ Hits        44761    44846    +85     
- Misses       7296     7310    +14     
- Partials     2075     2076     +1     
Flag Coverage Δ
keras 82.50% <70.00%> (+<0.01%) ⬆️
keras-jax 63.91% <0.00%> (-0.17%) ⬇️
keras-numpy 59.02% <0.00%> (-0.08%) ⬇️
keras-openvino 33.00% <70.00%> (+0.12%) ⬆️
keras-tensorflow 64.29% <0.00%> (-0.07%) ⬇️
keras-torch 63.98% <0.00%> (-0.14%) ⬇️

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.

@rkazants
Copy link
Contributor

rkazants commented Apr 5, 2025

Do not merge. Quite massive amount of changes.
{72274F3F-F843-497C-B52E-135B103F1909}

@victorgearhead
Copy link
Author

@rkazants What can I do about this ? any suggestions ?

@gbaned gbaned added this to PR Queue Apr 8, 2025
@github-project-automation github-project-automation bot moved this to Assigned Reviewer in PR Queue Apr 8, 2025
@gbaned gbaned requested a review from mattdangerw April 8, 2025 10:23
@@ -33,7 +33,6 @@ NumpyDtypeTest::test_isfinite
NumpyDtypeTest::test_isinf
NumpyDtypeTest::test_isnan
NumpyDtypeTest::test_linspace
NumpyDtypeTest::test_log1p
NumpyDtypeTest::test_logaddexp
NumpyDtypeTest::test_logspace
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 NumpyOneInputOpsCorrectnessTest::test_log1p below

@rkazants
Copy link
Contributor

also, correct formatting:
{B78CD239-1E75-44A7-9C10-99EF4FAB4D04}

one_const = ov_opset.constant(1, x_type).output(0)
added = ov_opset.add(x, one_const).output(0)
result = ov_opset.log(added).output(0)
return OpenVINOKerasTensor(result)

Copy link
Contributor

Choose a reason for hiding this comment

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

please add more one blank line to pass CI jobs

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.

None yet

4 participants