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

[ONNX] Extend ONNX Frontend with BitwiseAnd-18 operator #21585

Merged
merged 30 commits into from
Dec 19, 2023
Merged

[ONNX] Extend ONNX Frontend with BitwiseAnd-18 operator #21585

merged 30 commits into from
Dec 19, 2023

Conversation

rghvsh
Copy link
Contributor

@rghvsh rghvsh commented Dec 11, 2023

Details:

  • Implemented ONNX frontend BitwiseAnd operator and corresponding tests.

Tickets:

@rghvsh rghvsh requested a review from a team as a code owner December 11, 2023 16:42
@github-actions github-actions bot added the category: ONNX FE OpenVINO ONNX FrontEnd label Dec 11, 2023
@ilya-lavrenov ilya-lavrenov added the ExternalPR External contributor label Dec 11, 2023
Copy link
Contributor

@mitruska mitruska left a comment

Choose a reason for hiding this comment

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

Thank you for the contribution, great work! 🚀
I've left one suggestion to the conversion code and hint to fix the CI checks related to enablement of ONNX BitwiseAnd tests marked as xfail.

src/frontends/onnx/frontend/src/op/bitwise_and.cpp Outdated Show resolved Hide resolved
src/frontends/onnx/tests/onnx_import.in.cpp Outdated Show resolved Hide resolved
rghvsh and others added 4 commits December 12, 2023 08:30
Removes the unblocked ONNX BitwiseAnd tests from the xfail list.
Removes the unblocked ONNX BitwiseAnd tests from the xfail list for compatibility api as well.
@rghvsh rghvsh requested a review from a team as a code owner December 12, 2023 14:50
@github-actions github-actions bot added the category: Python API OpenVINO Python bindings label Dec 12, 2023
@mitruska mitruska self-assigned this Dec 12, 2023
Corrects code style
Copy link
Contributor

@mitruska mitruska left a comment

Choose a reason for hiding this comment

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

LGTM, thank you for your quick response for all of the comments 🥇

If you enjoy contributing to OpenVINO, you are welcome to take a look at the other Good First Issue tasks. Especially you can be interested in the next ONNX Bitwise ops waiting for enablement, that should follow the changes from this PR.

@mitruska mitruska requested a review from gkrivor December 14, 2023 15:30
@rghvsh
Copy link
Contributor Author

rghvsh commented Dec 14, 2023

LGTM, thank you for your quick response for all of the comments 🥇

If you enjoy contributing to OpenVINO, you are welcome to take a look at the other Good First Issue tasks. Especially you can be interested in the next ONNX Bitwise ops waiting for enablement, that should follow the changes from this PR.

Thank You, this was fun. Would love to contribute more

@gkrivor
Copy link
Contributor

gkrivor commented Dec 15, 2023

build_jenkins

@rghvsh
Copy link
Contributor Author

rghvsh commented Dec 15, 2023

Hello! @mitruska @gkrivor what do the following tests do, I am unable to access more details about them. How do I fix these ?

Thanks
Raghav

@openvino-ci-bot
wheels_macos_release
Details
@openvino-ci-bot
wheels_manylinux2014_release
Details
@openvino-ci-bot
wheels_windows_vs2019_release
Details

@gkrivor
Copy link
Contributor

gkrivor commented Dec 15, 2023

Hi, ie_tests... - ignore please, it is a common issue at the moment.
Wheels failes with:

________ OnnxBackendNodeModelTest.test_bitwise_and_ui64_bcast_3v1d_cpu _________
AssertionError: 
Not equal to tolerance rtol=0.001, atol=1e-07
Mismatched elements: 3 / 60 (5%)
Max absolute difference: 2147483648
Max relative difference: 1.16415322e-10
 x: array([[[         0,          0,          0,          2,          0],
        [         0,          0,          0,          0,          0],
        [         0,          0,          0,          0,          0],...
 y: array([[[                   0,                    0,
                            0,                    2,
                            0],...

Could you try to reproduce it locally?

@mitruska
Copy link
Contributor

Hello! @mitruska @gkrivor what do the following tests do, I am unable to access more details about them. How do I fix these ?

Hello, thank you for pointing this out. I can see one failing test within mentioned pipelines: tests_python/test_backend.py::OnnxBackendNodeModelTest::test_bitwise_and_ui64_bcast_3v1d_cpu.

I suppose it's related to the ui64 type of the test inputs, what can be tricky for the specific configurations.
As this test passed within openvino-ngraph-onnx-lin (OpenVINO_ONNX_CI Release) pipeline, it seems to be more internal issue for further investigation, not related to the ONNX BitwiseAnd conversion code.

If you are not able to reproduce it, I suggest to put this single test back on the xfail list for now, sorry for the inconvenience.

@rghvsh
Copy link
Contributor Author

rghvsh commented Dec 15, 2023

Was not able to reproduce this error I'll put this back on tests_python/test_backend.py and compatibility api.

@mitruska
Copy link
Contributor

Was not able to reproduce this error I'll put this back on tests_python/test_backend.py and compatibility api.

Actually it requires to be marked as skip instead xfail, as the checks where the test pass will fail with xpass 🙃
So it should have dedicated label, please take a look at the example commit skipping test (7243274)
You can name it skip_bitwise_ui64.

@rghvsh
Copy link
Contributor Author

rghvsh commented Dec 17, 2023

Hello @mitruska @gkrivor ! Is this better?

@gkrivor
Copy link
Contributor

gkrivor commented Dec 17, 2023

build_jenkins

@gkrivor
Copy link
Contributor

gkrivor commented Dec 17, 2023

Looks like we have some issues in the CI. Please, do nothing, I'll merge master to you branch tomorrow and try again.

@gkrivor
Copy link
Contributor

gkrivor commented Dec 18, 2023

Huh, looks like I've broke your pr by refactoring onnx_import.in.cpp.

@gkrivor
Copy link
Contributor

gkrivor commented Dec 18, 2023

build_jenkins

@gkrivor gkrivor merged commit a4e8f9d into openvinotoolkit:master Dec 19, 2023
101 checks passed
@mlukasze mlukasze added this to the 2023.3 milestone Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: ONNX FE OpenVINO ONNX FrontEnd category: Python API OpenVINO Python bindings ExternalPR External contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Good First Issue]: Extend ONNX Frontend with BitwiseAnd-18 operator
5 participants