Commit Graph

293 Commits

Author SHA1 Message Date
Mateusz Bencer
a693f4efac [ONX FE][Quantize/DeQuantize] Ignore the axis attribute for scalar scale/zero_point (#14049) 2022-11-22 03:34:30 +03:00
Mateusz Tabaka
738d7bb09f Remove ov::JsonConfigExtension (#14087)
Ticket: 96278

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-11-21 15:06:08 +04:00
Xiuchuan Zhai
9680617333 [CPU][Paddle] support paddle reverse op mapping and unittest (#12822)
* support paddle reverse op mapping and unittest

* Update reverse.cpp
2022-11-21 07:05:16 +04:00
Roman Kazantsev
384a961793 [TF FE] Break the cycle for NextIteration (#14063)
* [TF FE] Break the cycle for NextIteration

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Fix code-style

* Better to cut by outputs of operation creating the cycle

* Remove extra thing

* Add test model

* Add test for conversion of TF1 While

* Apply code-review feedback: use pointers and correct error message

* Remove extra check

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-19 03:31:11 +03:00
Vladislav Vinogradov
96ad308380 Avoid gold linker usage in case of cross-compilation (#14097)
It might not be available in some cross-toolchains.

Extract the code for switching to gold linker into separate
CMake utility function to avoid duplication between multiple CMake scripts.
2022-11-19 01:19:01 +04:00
Anastasiia Pnevskaia
8f05bab594 PartialShape -> str methods alignment (MO, ov::core). (#13613)
* Added PartialShape from str constructor, added to_string() method.

* Small corrections.

* Moved shape parsing to PartialShape and Dimension classes.

* Fixed errors.

* Added tests for shapes with comma separator.

* Fixed tests.

* Test fixed.

* Fixed test.

* Fixed tests.

* Small fix.

* Removed usage of depricated method.

* Fix in MO IR reader.

* Tests fixed.

* Fix in MO IR reader.

* Test fixed.

* Shape class alignment.

* Code fixes.

* Code fixes.

* Used unnamed namespace.

* Undo change of Shape attribute adapter.

* Undo change of Shape attribute adapter.

* Removed unnecessary includes.

* Removed unnecessary code.

* Test fixed.

* Fix in MO IR reader.

* Moved check_all_digits() to ov::util.

* Moved check_all_digits() to src/core/src/.

* Clang format.

* Apply suggestions from code review

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

* Removed dimension_util file.

* Removed wrong change.

* Removed extra spaces from string representation of Shape.

* Test fixed.

* Added support of comma separator for value. Updated help.

* Returned old format shape serializing.

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
2022-11-18 14:38:11 +04:00
Oleg Pipikin
7c4b7355e6 Delete serialization tests from ieFuncTests (#13804)
* Delete serialization tests from ieFuncTests

* Extend visitor tests to improve coverage

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-11-17 11:48:45 +04:00
Ethan
875a4b6ed6 Paddle_OP_Not_euqal (#12009)
* add paddle op : not_equal

* update not_euqal test case

* update not_euqal test case

* Update elementwise_ops.cpp

fix clang-format error.

* Update elementwise_ops.cpp

fix clang format error

* Update src/frontends/paddle/src/op/elementwise_ops.cpp

* Delete op_fuzzy.cpp

* Update op_fuzzy.cpp

* Create generate_not_equal.py

* Delete generate_not_equal.py

Co-authored-by: cecilia peng <cecilia.peng@intel.com>
Co-authored-by: mei, yang <yang.mei@intel.com>
2022-11-16 13:24:45 +04:00
Ilya Lavrenov
90427b019e Unbrick TF FE (#13779) 2022-11-16 10:53:10 +04:00
Ilya Churaev
d337f6b16f Add get available opsets (#13920)
* Added doxygen comment for opset10

* Added get_available_opsets method to API

* Fixed build

* Fixed build and typo

* Use constant map

* Removed defines from global opset

* Added const to map
2022-11-15 16:35:09 +03:00
Katarzyna Mitrus
49b8a73c46 [ONNX] ConstantOfShape with empty tensor input (#13994)
* Tests for ConstantOfShape scalar

* Enable onnx ConstantOfShape scalar
2022-11-15 10:45:53 +01:00
Roman Kazantsev
83ee6aec15 [TF FE] Reimplement NonMaxSuppression translator and test in the pre-commit (#13974)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-15 10:58:47 +04:00
Roman Kazantsev
d6dc40bf34 [TF FE] Refactor translator for L2Loss and test in the pre-commit (#13972)
* [TF FE] Refactor translator for L2Loss and test in the pre-commit

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Use Power for square operation

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-15 03:47:56 +03:00
Roman Kazantsev
3b7a5c691d [TF FE] Fix TopK translator and add test to the pre-commit (#13971)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-14 14:02:12 +04:00
Ivan Tikhonov
3ec40c490b Fix copying of tensor names in OVTF TransposeSinking transformation (#13916)
* copy tensor names to transpose

* enable TransposeSinking, codestyle

* fix layer tests

* fix segfault

* delete transposes in catch block
2022-11-11 23:31:58 +04:00
Roman Kazantsev
e2c320a455 [TF FE] Fix translator for Rank operation and test it (#13927)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-10 12:33:43 +03:00
Mateusz Mikolajczyk
1c03be58ff [CORE] IsFinite, IsInf, IsNan reference implementation (#13621)
* Add reference implementation for Is ops

* FIx test

* Fix typo

* Remove deprecated

* Fix issues with API switch

* Force cast to float for float16/bfloat16 in ref

* Fix style

* Remove BWDCMP_RTTI

* Remove TensorVector helper check

* Remove evaluate functions

* Disable faling tests due to missing eval
2022-11-09 19:17:26 +03:00
Ilya Churaev
22b69304e8 Disable stderr output in Release builds (#13666)
* Disable stderr output in Release builds

* Reverted TF FE changes

* Try to avoid ONNX issue

* Revert "Try to avoid ONNX issue"

This reverts commit 9c5bd7e7fa.

* Try to fix ONNX tests

* Revert "Try to fix ONNX tests"

This reverts commit b74f21baf6.

* Try to fix build

* Try to fix ONNX debug build
2022-11-09 12:16:58 +04:00
Ilya Churaev
63bfeb7eba Enable linker warnings as error for Windows (#13696)
* Enable linker warnings as error for Windows

* Fisable some linker warnings

* Suppress warnings

* Fixed build

* Change if opset

* Try to fix some warnings

* Revert some changes

* Try to fix warning

* Define OpenVINO static library for static libraries
2022-11-09 11:19:36 +04:00
Roman Kazantsev
124106f81b [TF FE] Refactor SpaceToBatchND and BatchToSpaceND operations (#13884)
* [TF FE] Refactor SpaceToBatch and BatchToSpace operations

Make them to support inputs of dynamic rank and shapes

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Add layer tests in the pre-commit

* Fix for normalizing padding and crops

* Correct the type of paddings and crops

* Fix incorrect changes for paddings and crops

* Update src/frontends/tensorflow/src/op/space_to_batch_nd.cpp

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>

* Update src/frontends/tensorflow/src/op/space_to_batch_nd.cpp

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2022-11-08 20:38:55 +03:00
Ilya Churaev
0bb72a4949 Add ctest for some test targets (#13727)
* Add ctest for some test targets

* Fixed test coverage

* Replaced unit tests cmake script

* Fixed code style

* Use ov_add_test_target for FEs

* Fixed code style
2022-11-08 10:25:16 +04:00
Roman Kazantsev
995bcdbe47 [TF FE] Refactor Where translator and test it (#13880)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-07 12:32:16 +04:00
Roman Kazantsev
2e9a8cd332 [TF FE] Refactor SpaceToDepth and test it in the precommit (#13882)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-07 12:23:54 +04:00
Roman Kazantsev
57eddaa239 [TF FE][Common] Use opset Unique in TF FE and move Unique decomposition to common (#13818)
* [TF FE][Common] Move TF FE to opset Unique and add Unique decomposing to common

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Add Unique decomposition transformation into the common part

* Add transformation tests for UniqueDecomposition

* Fix unique_decomposition_test

* Simplify condition of transformation applicability

* Clarify the comment when the transformation is applicable

* Fix transformation test

* Fix transformation test

* Add support of opset10 in IR Reader

* Mark the single element case as xfail

* Fix tensor names in the transformation

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-07 01:24:23 +03:00
Artur Kulikowski
a48d1558e3 ONNX: Throw exception if attribute reduction is used in ScatterND or ScatterElements (#13778)
* ONNX: Throw exception if `reduction` attribute has unsupported value

Operators:
- ScatterND
- ScatterElements
2022-11-04 10:40:14 +01:00
Przemyslaw Wysocki
1cc499429a [PyOV] Upgrade ONNX to 1.12.0 (#12847)
* Refactor tests for onnx1.12

* Fix ONNX compatibility and numpy warnings

* Upgrade ONNX to 1.12 in cpp

* Skip unsupported ops

* Revert "Fix ONNX compatibility and numpy warnings"

This reverts commit cd8a0e6b8e.

* Small changes

* Remove unnecessary changes

* Bump Python version in github workflows

* Fix flake error

* Another flake error

* Even more flake errors

* Xfail more tests

* Fix mypy errors

* Change onnx version in tests

* Bump ONNX in MO

* Fix onnx utils in comp

* Minor changes

* Import pathlib

* Add xfails to compatibility tests

* Skip segfaulting tests

* Fix onnx nametuple

* Fix flake

* Try to fix py3.6 onnx

* Fix model importer and reqs

* Add __test__

* Bump OMZ commit

* checkout omz

* Revert omz

* Bump omz

* Bump omz

* Revert omz

* Bump omz

* Change pychecks python version

* Add LayerNorm to expanded ONNX functions

* Apply clang

* Move LayerNorm tests to skip_segfault

* Refactoring

* Minor changes

* Minor changes

* Relax MO reqs
2022-11-03 22:56:57 +04:00
Roman Kazantsev
fdee4ac703 [TF FE] Refactor Pad, PadV2, MirrorPad and add layer tests (#13597)
* [TF FE] Refactor Pad, PadV2, MirrorPad and add layer tests

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Recover translators for DynamicStitch

* Apply code-review feedback and workaround for i32 paddings

* Return required type for convert_pad_mode function

* Work around IR reader limitation with i32 type for Pad

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-03 02:02:36 +03:00
Ilya Lavrenov
838a6503a0 Pdpd tests moved to folder with frontend (#13414)
* Moved pdpd tests to folder with pdpd frontend

* Restored old requirements.txt for paddle temporarily

* FIxed requirements path for pdpd

* Restore old dependency
2022-11-02 21:23:32 +04:00
Roman Kazantsev
77b3faeb55 [TF FE] Refactor translators for Select and SelectV2 and test it (#13699)
* [TF FE] Refactor translators for Select and SelectV2 and test it

It fixes a case when the condition of a smaller rank than operands in Select
Separately added tests for Select and SelectV2
Do not mix-up Select with Where, so tests for Where are moved to test_tf_Where.py

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Revert extra changes

* Apply code-review feedback: support undefined rank

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
2022-11-01 12:38:20 +04:00
Roman Kazantsev
af99d52ee4 [TF FE] Add translator for IsFinite and test it (#13728)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-01 06:56:13 +00:00
Roman Kazantsev
c6dda68387 [TF FE] Refactor translators for Reverse, ReverseV2 and test it (#13602)
* [TF FE] Refactor translators for Reverse, ReverseV2 and test it

Make these operations reshapeable. Add layer tests for them to the pre-commit

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Apply code-review feedback: simplify checks in Reverse

* Apply the rest of code-review feedback: simplify code for Reverse

* Remove redundant check for axes

* Apply code-review feedback: support dynamic rank

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-01 07:39:41 +04:00
Artur Kulikowski
0aeb3d8151 Add ONNX model metadata to ov::Model (#13712)
* Add ONNX model metadata to ov::Model

* Add correct path to onnx models
2022-10-31 08:15:26 +01:00
Ilya Churaev
fa50e35bb8 Extended error messages (#13647) 2022-10-28 15:14:23 +04:00
Bartek Szmelczynski
464e0aae72 Support Unsqueeze-13, Squeeze-13 in MO (#13391) 2022-10-28 13:01:21 +02:00
Luo Cheng
4ec5499c5d [FrontEnd] add control flow, basic tensor array support for paddle faster_rcnn model (#10684)
* support control flow, tensor array

* fix clang error

* support ppdet2.3 model

* 1. code clean; 2. more comments inlined.

* fix after clone ov::Model no more in need.

* support dynamic shape; more comments

* only process same rank

* remove unused function

* simplify the loop logic

* fix review comments

* support shape{1} {}

* disable FoldSubgraphEmptyInputs because loop in loop

* fix review comments

* remove scalar{}->shape{1} testcase

* allow re-infer shape when backedge changes input shape

* fix condition shape to {1}

* support output rank is not same or dynamic

* fix refactor error

* apply review comments

* fix win warnings

* remove TransformEliminateConvert

Co-authored-by: jialipen <cecilia.peng@intel.com>
Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2022-10-27 18:36:24 +03:00
Oleg Pipikin
ad1c824e50 Eliminate reader tests (#13409)
* remove reader tests #1

* remove reader tests #2

* remove reader tests #3

* remove reader tests #4

* Add clone_with_new_inputs to visitor tests

* fixes
2022-10-27 14:42:23 +03:00
Mateusz Tabaka
154850e8ca Eliminate dequantization shift when zero point == 0 (#13353)
Ticket: 91111
2022-10-27 01:37:13 +02:00
Bartek Szmelczynski
bdc037adcf Add IsFinite operator (#13441) 2022-10-26 13:24:01 +02:00
Roman Kazantsev
9cd5c8b362 [TF FE] Add translators for IsInf and IsNan and test it (#13606)
* [TF FE] Add translators for IsInf and IsNan and test it

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* Add changes in tf_utils

* Apply code-review: add xfail and use of unary op

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-26 09:03:17 +03:00
Mateusz Bencer
6791338710 [ONNX FE] Handle Pad value if non-scalar value provided (#13611) 2022-10-25 21:56:30 +03:00
Ilya Churaev
2a344b66cb Update to the latest cmake for Windows (#13604)
* Update to the latest cmake for Windows

* Skip new warnings

* Added compiler flags for old cmake

* Disabled some warnings

* Suppress new warnings

* Fixed some errors

* Disable some warning for lpt

* Fix some warnings

* Disable new warnings

* Fix some warnings

* Disabled Was error for arm

* Fixed some errors

* Fixed some new warnings

* Fixed auto plugin

* Fixed Windows warning

* Fixed Windows

* Disable some warnings

* Some changes

* Small test fixes

* Fixed python build

* Added skip warnings for legacy python API
2022-10-25 18:11:46 +04:00
Tomasz Dołbniak
f8a80b6146 Disabled test re-enabled (#13624) 2022-10-25 06:14:22 +00:00
Georgy Krivoruchko
94c40d6a82 [TF][FE] Fixed wrong output naming in AvgPool (#13575) 2022-10-24 16:50:51 +04:00
Ilya Churaev
5e25341904 Added reading of meta information from IR (#12925)
* Added reading of meta information from IR

* Fixed code style

* Added tests to cover multi-threading and removed file

* Fixed asserts

* Changed parsing of meta information

* Added meta information serialization

* Fixed unit tests

* Support unset_cli_parameters

* Changed get meta API

* Fixed threading tests

* Fixed mutex

* Removed serialization

* Fixed tests

* Fixed build

* Add quantization_parameters

* Use rt_info instead of meta section

* Disable old rt_info serialization

* Try to fix MO Reader for new rt info

* Fixed property name

* Added test to new meta format

* Added tests for new PoT config

* Added tests for new rt_info attributes

* Remove redundant code

* Revert old rt_info style for nodes

* Add get API for python

* Added python tests

* Fixed python code style

* Fixed tests code style

* Fix flake8

* Fixed python tests

* Add has_rt_info to test

* Added more comments

* Extended tests and API

* Changed error message

* Use new API to get model version

* Fixed comments on python API

* Fixed comments

* Fixed comments

* Update src/bindings/python/src/pyopenvino/graph/model.cpp

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>

* Update src/bindings/python/src/pyopenvino/graph/model.cpp

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>

* Fixed comments

* Fixed python check

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>
2022-10-21 12:21:41 +04:00
Mateusz Mikolajczyk
ffc74c8fe2 IsInf operator (#13383) 2022-10-20 20:59:01 +03:00
Roman Kazantsev
22f3bee0f9 [TF FE] Refactor translation for Concat and ConcatV2 operations and add tests (#13542)
* [TF FE] Refactor translation for Concat and ConcatV2 operations and add tests

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

* [TF FE] Correct the layer tests for passing

* Apply code-review feedback: remove redundant function

* Fix a name of function to create Concat model in the layer test

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-20 16:01:31 +02:00
Mateusz Bencer
88ffc23e3a Added README for ONNX Frontend (#13325) 2022-10-20 15:54:25 +02:00
Mateusz Bencer
d3d8fd8c20 [ONNX FE] Added support of FusedConv op (#13553) 2022-10-20 09:18:24 +02:00
taixiurong
2d8cf904c8 support paddle elementwise_floordiv (#13059) 2022-10-20 05:59:01 +00:00
Roman Kazantsev
5a3df29854 [TF FE] Refactor DepthToSpace and test it (#13544)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-20 01:35:25 +03:00