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

added changes to support numpy.log1p op #21050

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

Conversation

Raghavyadav17
Copy link

@Raghavyadav17 Raghavyadav17 commented Mar 17, 2025

Based on the problem statement, implemented all the necessary changes in the codebase i.e

  1. Provided decomposition in python for numpy.log1p using openvino opset
  2. included test by removing line implemented in .txt file
  3. Created pytest.ini file in the root of the cloned repo and included the given code..

Fixes openvinotoolkit/openvino#29487

Copy link

google-cla bot commented Mar 17, 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.

@Raghavyadav17
Copy link
Author

@rkazants could you please review this PR :)
Thanks !!!

pytest.ini Outdated
Comment on lines 1 to 3
[pytest]
env =
KERAS_BACKEND=openvino
Copy link
Contributor

Choose a reason for hiding this comment

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

need to remove this file

Copy link
Author

Choose a reason for hiding this comment

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

In the issue description it was mentioned that a pytest.ini file is to be created in the root of the cloned repo, should i still remove this file ?

Copy link
Contributor

@rkazants rkazants Mar 27, 2025

Choose a reason for hiding this comment

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

It was needed only for developer purpose but not for production. So please remove it.

Copy link
Author

Choose a reason for hiding this comment

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

@rkazants sure, both the PRs would be fixed today

requirements.txt Outdated
@@ -7,7 +7,7 @@ tf2onnx
# Torch.
--extra-index-url https://download.pytorch.org/whl/cpu
torch==2.6.0+cpu
torch-xla==2.6.0;sys_platform != 'darwin'
#torch-xla==2.6.0;sys_platform != 'darwin'
Copy link
Contributor

Choose a reason for hiding this comment

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

need to revert this change

@rkazants
Copy link
Contributor

@Raghavyadav17, please run workflow for validation

@Raghavyadav17
Copy link
Author

@Raghavyadav17, please run workflow for validation

Hi @rkazants will make the necessary changes you mentioned. Any commands to trigger the workflow for validation ?

@Raghavyadav17
Copy link
Author

hi @rkazants how do I run the workflow for validation ?

requirements.txt Outdated
@@ -7,7 +7,7 @@ tf2onnx
# Torch.
--extra-index-url https://download.pytorch.org/whl/cpu
torch==2.6.0+cpu
torch-xla==2.6.0;sys_platform != 'darwin'
Copy link
Contributor

Choose a reason for hiding this comment

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

please revert this change. Not needed

Comment on lines 36 to 38
NumpyDtypeTest::test_log10
NumpyDtypeTest::test_log1p

NumpyDtypeTest::test_log
Copy link
Contributor

Choose a reason for hiding this comment

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

please rebase to latest master

Copy link
Author

Choose a reason for hiding this comment

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

please rebase to latest master

hi @rkazants will fix all the issues by today

Comment on lines -36 to +38
NumpyDtypeTest::test_log1p
NumpyDtypeTest::test_logaddexp
NumpyDtypeTest::test_log10

NumpyDtypeTest::test_log
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. remove lines only corresponding to log1p

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.

[Good First Issue][Keras 3 OpenVINO Backend]: Support numpy.log1p operation
3 participants