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

Revise floor #5618

Merged
merged 14 commits into from
May 21, 2021
Merged

Revise floor #5618

merged 14 commits into from
May 21, 2021

Conversation

pszmel
Copy link
Contributor

@pszmel pszmel commented May 13, 2021

Details:

  • add type_prop test
  • add visitor test

Tickets:

  • 37439

@pszmel pszmel marked this pull request as ready for review May 17, 2021 06:48
@pszmel pszmel requested a review from a team May 17, 2021 06:48
@pszmel pszmel self-assigned this May 17, 2021
@pszmel pszmel requested a review from ilyachur May 17, 2021 06:48
@jdanieck jdanieck requested a review from mitruska May 17, 2021 14:03
@jdanieck
Copy link
Contributor

@mitruska can you have a look at this PR ?

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.

So in general, the current changes in this PR cover instantiation of type prop tests (common for unary ops) and attribute visitor test (see review comments).

But if this PR and review should cover all of the revision subtasks there is some possible improvements like:

  • Replace const NodeTypeInfo& get_type_info() const override { return type_info; } by NGRAPH_RTTI macro
    ngraph/op/floor.hpp#L19-L20
  • Check/Refactor Floor backend tests backend/floor.in.cpp (integer tests are excluded in ie unit_test.manifest, is that still needed?)
  • Floor_1.md spec refactoring (as a separate PR) for example moving the math formula to the detailed description section.

ngraph/test/visitors/op/floor.cpp Outdated Show resolved Hide resolved
ngraph/test/visitors/op/floor.cpp Outdated Show resolved Hide resolved
ngraph/test/visitors/op/floor.cpp Outdated Show resolved Hide resolved
@pszmel
Copy link
Contributor Author

pszmel commented May 17, 2021

@mitruska This test still fails on CPU, so I guess it should not be removed from manifest

@pszmel pszmel requested a review from mitruska May 17, 2021 20:25
@pszmel pszmel requested a review from a team as a code owner May 18, 2021 09:56
@pszmel
Copy link
Contributor Author

pszmel commented May 18, 2021

@mitruska @ilyachur I decided to change the spec in this PR because these are purely cosmetic changes

docs/ops/arithmetic/Floor_1.md Outdated Show resolved Hide resolved
docs/ops/arithmetic/Floor_1.md Show resolved Hide resolved
@jdanieck jdanieck self-assigned this May 19, 2021
@jdanieck jdanieck requested review from ilyachur and jdanieck May 20, 2021 11:24
@pszmel pszmel requested a review from a team May 20, 2021 11:26
@ilyachur ilyachur merged commit 4b86089 into openvinotoolkit:master May 21, 2021
yekruglov pushed a commit to yekruglov/openvino that referenced this pull request Jun 7, 2021
* create type_prop tests

* add visitors test

* fix bug in visitor test

* add RTTI macro

* fix bug in visitors test

* add newline

* update spec

* update spec

* update RTTI definition

* move RTTI definitioion to the top of he file

* Remove broadcast from attribute tests.

* Add Floor-1 to summarize.py report.

Co-authored-by: jdanieck <[email protected]>
@ilyachur ilyachur mentioned this pull request Jul 2, 2021
rnugmanx pushed a commit to rnugmanx/openvino that referenced this pull request Aug 26, 2021
* create type_prop tests

* add visitors test

* fix bug in visitor test

* add RTTI macro

* fix bug in visitors test

* add newline

* update spec

* update spec

* update RTTI definition

* move RTTI definitioion to the top of he file

* Remove broadcast from attribute tests.

* Add Floor-1 to summarize.py report.

Co-authored-by: jdanieck <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants