Add Round-5 operation (#2328)
authorAnton Chetverikov <Anton.Chetverikov@intel.com>
Tue, 20 Oct 2020 15:36:19 +0000 (18:36 +0300)
committerGitHub <noreply@github.com>
Tue, 20 Oct 2020 15:36:19 +0000 (18:36 +0300)
commit44406691e5c91dda430a7c61f48484c60e7742f0
tree9ffcb8b2f48933b78b09b52c68472faa2f05af16
parenta2e49469b5da50f5584e5aafefa169e3d1f7b65d
Add Round-5 operation (#2328)

* Add Round-5 operation

* Add ONNX Round to supported operation list

* Add ngraph implementation for Round operation

* Update MO part

* Create UnaryElementwise class, update Round Operation

* Fix mode attr in mxnet extractor

* Add tests for Round shape infer

* Update 'enable' attr

* Update MO IR Reader to support UnaryElementwise operations

* Minor test refactor

* Update ngraph Round operation

* Add reference implementation

* Add test for reference implementation

* Add test for shape infer

* Add test for IE IR Reader

* AddRound operation to python api

* Fix missed mode attr

* Update Round operation version

* Fix codestyle

* Add MxNet Round to supported layers list

* Fix error in reference

* Fix comments style

* Update CMake file

* Update Ngraph reference test

* Update IE IR Reader tests

* Return v0::Round operation

* Update shape infer tests

* Fix v0::Round reference

* Fix codestyle

* Enum instead of string

* Fix codestyle

* Add Mode attribute adapter

* Update Mode attr

* Fix reference for v0::Round

* Fix codestyle

* Fix mode attr

* Fix get() method

* Fix codestyle in python api

* Update test info

* Fix ngraph api part

* Ad round v5 to interpreter tests

* Fix codestyle is ie reader test

* Update ngraph python api __init__.py file

* Adde opser5 to dafault opsets in ie_ir reader

* Add parser for Round layer

* Remove redundant spaces

* Add round creator to appropriate list

* Remove redundant import

* Commit to bump infrastructure version

I'm sorry for this, but this commit will be squashed on merge to master anyway and it is needed for your PR to correctly pass the pipeline

* Fix import

* fix codestyle

* Fix ngraph api part

* Add shape infer tests in python api

* Add .upper() for mode attr

* Refactor MO shape infer test for Round op

* Update tests and add comments

* Revert "Commit to bump infrastructure version"

This reverts commit 56e6ae1e4c31439ba0d4636fa76782c03bf30aca.

* remove parser for Round layer

* Update Ronund-5 evaluate test

* Resolve review comments

Co-authored-by: User <user@nnlvdp-achetver.inn.intel.com>
Co-authored-by: Andrey Babushkin <andrey.babushkin@intel.com>
Co-authored-by: Anton Chetverikov <anton.chetverikov@.intel.com>
20 files changed:
docs/MO_DG/prepare_model/Supported_Frameworks_Layers.md
inference-engine/tests/functional/inference_engine/ngraph_reader/round_test.cpp [new file with mode: 0644]
model-optimizer/extensions/front/mxnet/elementwise_ext.py
model-optimizer/extensions/front/onnx/elementwise_ext.py
model-optimizer/extensions/front/tf/elementwise_ext.py
model-optimizer/extensions/ops/elementwise.py
model-optimizer/extensions/ops/elementwise_test.py [new file with mode: 0644]
model-optimizer/mo/utils/ir_reader/layer_to_class.py
ngraph/core/include/ngraph/op/round.hpp
ngraph/core/reference/include/ngraph/runtime/reference/round.hpp
ngraph/core/src/op/round.cpp
ngraph/python/src/ngraph/__init__.py
ngraph/python/src/ngraph/opset5/__init__.py
ngraph/python/src/ngraph/opset5/ops.py
ngraph/python/tests/test_ngraph/test_ops_unary.py
ngraph/test/CMakeLists.txt
ngraph/test/op_eval/round.cpp [new file with mode: 0644]
ngraph/test/runtime/interpreter/int_executable.hpp
ngraph/test/runtime/interpreter/opset_int_tbl.hpp
ngraph/test/type_prop/round.cpp