Skip to content

implementation of logaddexp in openvino backend (issue #29489) #21216

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

Conversation

mathys-mt
Copy link

I implemented the numpy logaddexp function in openvino backend using functions already coded in this file. The tests seem to pass, but maybe implementing logaddexp from zero without using the openvino numpy functions would be more effective. @rkazants could you review the PR ?

Copy link

google-cla bot commented Apr 27, 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.

@codecov-commenter
Copy link

codecov-commenter commented Apr 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.61%. Comparing base (55adc57) to head (433bb34).
Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #21216      +/-   ##
==========================================
+ Coverage   82.60%   82.61%   +0.01%     
==========================================
  Files         564      564              
  Lines       54404    54454      +50     
  Branches     8460     8467       +7     
==========================================
+ Hits        44938    44986      +48     
- Misses       7391     7395       +4     
+ Partials     2075     2073       -2     
Flag Coverage Δ
keras 82.42% <100.00%> (+0.01%) ⬆️
keras-jax 63.74% <0.00%> (-0.01%) ⬇️
keras-numpy 58.86% <0.00%> (-0.01%) ⬇️
keras-openvino 32.96% <100.00%> (+<0.01%) ⬆️
keras-tensorflow 64.14% <0.00%> (-0.01%) ⬇️
keras-torch 63.81% <0.00%> (-0.02%) ⬇️

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.

Comment on lines +968 to +969
m = maximum(x1, x2)
return add(m, log(add(exp(subtract(x1, m)), exp(subtract(x2, m)))))
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 implementation. See other PRs as examples

@rkazants
Copy link
Contributor

do NOT merge!!!

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