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 BlackmanWindow, HammingWindow and HannWindow operators #19428

Merged
merged 29 commits into from
Oct 24, 2023

Conversation

siddhant-0707
Copy link
Contributor

@siddhant-0707 siddhant-0707 commented Aug 26, 2023

Details:

  • created implementation for BlackmanWindow, HammingWindow and HannWindow operators
  • created basic tests for them

Tickets:

@siddhant-0707 siddhant-0707 requested a review from a team as a code owner August 26, 2023 05:20
@github-actions github-actions bot added the category: ONNX FE OpenVINO ONNX FrontEnd label Aug 26, 2023
@siddhant-0707
Copy link
Contributor Author

siddhant-0707 commented Aug 28, 2023

Hey @mbencer @p-wysocki could you help me out with this? This is my first time contributing here.

@p-wysocki
Copy link
Contributor

Hey @siddhant-0707, thanks for the PR! @gkrivor could you please take a look?

@p-wysocki
Copy link
Contributor

@siddhant-0707 there was an issue with CI on master, it has been fixed yesterday. Please update your branch, the checks failing on CMake step (all of them from what I see) will now start building and run actual tests. Sorry for the inconvenience. :)

@p-wysocki
Copy link
Contributor

@siddhant-0707 do you have access to Azure pipelines logs? There's apparently some issue with building the new cpp files.

@siddhant-0707
Copy link
Contributor Author

@p-wysocki Yep I can see the Azure pipelines logs. Will get back to you tomorrow.

Copy link
Contributor

@gkrivor gkrivor left a comment

Choose a reason for hiding this comment

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

Great job! I think we should slightly polish the PR and merge.

src/frontends/onnx/frontend/src/op/blackmanwindow.cpp Outdated Show resolved Hide resolved
src/frontends/onnx/frontend/src/op/blackmanwindow.cpp Outdated Show resolved Hide resolved
src/frontends/onnx/frontend/src/ops_bridge.cpp Outdated Show resolved Hide resolved
@gkrivor
Copy link
Contributor

gkrivor commented Aug 31, 2023

@siddhant-0707 , btw, which code editor do you use? If it is MS VS - use "Ctrl + K, Ctrl + D" to fix coding style issues. Or thru menu Edit > Advanced > Format Document

@siddhant-0707
Copy link
Contributor Author

Hey guys I made the requested changes but need some help with the coding style issues. I ran Format Document from the command palette (VSCode) and it seemed to work. Format looks same as other files in the repo but tests still failing.

Copy link
Contributor

@gkrivor gkrivor left a comment

Choose a reason for hiding this comment

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

I think you've successfully solved a code-style warnings.

src/frontends/onnx/frontend/src/op/hammingwindow.cpp Outdated Show resolved Hide resolved
src/frontends/onnx/frontend/src/op/hannwindow.cpp Outdated Show resolved Hide resolved
src/frontends/onnx/frontend/src/op/blackmanwindow.cpp Outdated Show resolved Hide resolved
src/frontends/onnx/frontend/src/op/hammingwindow.cpp Outdated Show resolved Hide resolved
@siddhant-0707 siddhant-0707 changed the title Extend ONNX Frontend with BlackmanWindow, HammingWindow and HannWindow operators [ONNX] Extend ONNX Frontend with BlackmanWindow, HammingWindow and HannWindow operators Sep 6, 2023
@gkrivor
Copy link
Contributor

gkrivor commented Sep 18, 2023

Hi, @siddhant-0707! Great to see you are continue improving the PR! I'll try to build your change locally today or tomorrow, I think you should just use some additional macro to prevent deprecation warnings. But I need to clarify some points before.

Copy link
Contributor

@gkrivor gkrivor left a comment

Choose a reason for hiding this comment

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

Sorry for a delay, updating:

Copy link
Contributor

@gkrivor gkrivor left a comment

Choose a reason for hiding this comment

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

Hi, I tried to verify your implementation, could you take a look on my comments and align your code? It should fix most issues.
I saw an issue on GPU, if you will see similar (or our CI will see it) - we may need to disable tests for the device (let's see it later).

src/frontends/onnx/tests/onnx_import.in.cpp Outdated Show resolved Hide resolved
src/frontends/onnx/tests/onnx_import.in.cpp Outdated Show resolved Hide resolved
src/frontends/onnx/tests/onnx_import.in.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@gkrivor gkrivor left a comment

Choose a reason for hiding this comment

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

Looks like your solution is fully functional and you are able to remove corresponding tests from this file

"OnnxBackendNodeModelTest.test_blackmanwindow_cpu",

src/frontends/onnx/tests/onnx_import.in.cpp Outdated Show resolved Hide resolved
src/frontends/onnx/tests/onnx_import.in.cpp Outdated Show resolved Hide resolved
src/frontends/onnx/tests/onnx_import.in.cpp Outdated Show resolved Hide resolved
@ilya-lavrenov ilya-lavrenov added the ExternalPR External contributor label Oct 19, 2023
@gkrivor
Copy link
Contributor

gkrivor commented Oct 20, 2023

Great job! Let's wait for CI results!

@gkrivor
Copy link
Contributor

gkrivor commented Oct 23, 2023

Congratulations with green CI! I'm waiting when our internal works will be finished and I'll run last pre-commit checks before merge.

@gkrivor
Copy link
Contributor

gkrivor commented Oct 24, 2023

build_jenkins

@gkrivor gkrivor merged commit eb55360 into openvinotoolkit:master Oct 24, 2023
68 checks passed
@siddhant-0707
Copy link
Contributor Author

Thank you so much for the help @gkrivor 😃

@p-wysocki
Copy link
Contributor

That's an enormous piece of work. Thank you and congratulations @siddhant-0707!

alvoron pushed a commit to alvoron/openvino that referenced this pull request Nov 6, 2023
…nnWindow operators (openvinotoolkit#19428)

* ONNX BlackManWindow enabled

* added a test periodic

* Add the license statement

* ONNX HammingWindow, HannWindow enabled

also added basic tests for each

* minor tests added

* made reviewed changes

* made reviewed changes

used output_datatype directly, returned y_values directly

* fixed clang-format

* add OPENVINO_SUPPRESS_DEPRECATED_START

* include math.h

* float fix

* fix

* fix namespace to set_1

* test fixes

* fix cast to output_datatype

* fix, replace cast with ov::convert

* fix, use element::f32

* major fixes

* fixes

* Update onnx_import.in.cpp

* Update onnx_import.in.cpp

---------

Co-authored-by: Przemyslaw Wysocki <przemyslaw.wysocki@intel.com>
allnes pushed a commit to allnes/openvino that referenced this pull request Nov 23, 2023
…nnWindow operators (openvinotoolkit#19428)

* ONNX BlackManWindow enabled

* added a test periodic

* Add the license statement

* ONNX HammingWindow, HannWindow enabled

also added basic tests for each

* minor tests added

* made reviewed changes

* made reviewed changes

used output_datatype directly, returned y_values directly

* fixed clang-format

* add OPENVINO_SUPPRESS_DEPRECATED_START

* include math.h

* float fix

* fix

* fix namespace to set_1

* test fixes

* fix cast to output_datatype

* fix, replace cast with ov::convert

* fix, use element::f32

* major fixes

* fixes

* Update onnx_import.in.cpp

* Update onnx_import.in.cpp

---------

Co-authored-by: Przemyslaw Wysocki <przemyslaw.wysocki@intel.com>
@mlukasze mlukasze added this to the 2023.3 milestone Jan 18, 2024
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 ExternalPR External contributor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extend ONNX Frontend with BlackmanWindow, HammingWindow and HannWindow operators
5 participants