Commit Graph
323 Commits
Author SHA1 Message Date
cecilia peng 2d5fa2d164 fix heap-buffer-overflow issue. (#14648) 2022-12-21 09:12:08 +00:00
Roman Kazantsev e7b510376a [TF FE][Telemetry] Collect statistics about operations that fails the conversion (#14736)
* [TF FE] Add error-cause operation event for telemetry

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

* Revert unneeded changes

* Apply code-review feedback: replace test with unreal op, use error_cause

* Add test model with unreal Add operation

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-21 10:09:25 +04:00
8ef6ad3665 [Paddle] Add paddle frontend developer guide. (#13464)
* Update src/frontends/paddle/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* [Paddle] Add paddle frontend developer guide.

* add png.

* Update src/frontends/paddle/docs/paddle_frontend_architecture.md

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

* Update src/frontends/paddle/README.md

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

* Update src/frontends/paddle/README.md

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Update src/frontends/paddle/README.md

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Update src/frontends/paddle/docs/paddle_frontend_architecture.md

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Update src/frontends/paddle/docs/paddle_frontend_architecture.md

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Update src/frontends/paddle/docs/tests.md

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>

* Update src/frontends/paddle/docs/paddle_frontend_architecture.md

Co-authored-by: mei, yang <yang.mei@intel.com>

* fix CR.

* unit test path

* Update src/frontends/paddle/docs/paddle_frontend_architecture.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/paddle/docs/tests.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/paddle/docs/paddle_frontend_architecture.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/paddle/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/paddle/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/paddle/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/paddle/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* fix with mermaid.

* fix

* fix

* Update src/frontends/paddle/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* fix

* fix

* Update src/frontends/paddle/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/paddle/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/paddle/docs/tests.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/paddle/docs/tests.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/paddle/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/paddle/docs/paddle_frontend_architecture.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/paddle/docs/tests.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update src/frontends/paddle/README.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* more specific

* Apply suggestions from code review

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
Co-authored-by: mei, yang <yang.mei@intel.com>
Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-12-20 13:01:43 +04:00
Roman Kazantsev 0b2f3347f6 [Tools] Support NumPy 1.24 (#14728)
* [Tools] Avoid use of NumPy deprecated types

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

* Revert "[Tools] Avoid use of NumPy deprecated types"

This reverts commit 21ffc167d1.

* Move to 1.24 Numpy

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-19 23:51:34 -08:00
Tomasz Dołbniak 56606ec46f ONNX Adaptive average pooling implementation (#14682) 2022-12-16 15:39:40 +01:00
Roman Kazantsev e09995bc60 [TF FE] Support models with topologically unsorted nodes (#14652)
* [TF FE] Support models with topologically unsorted nodes

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

* Fix conversion for models with cycle

* Fix code-style

* Fix code-style

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-16 08:50:40 +03:00
Roman Kazantsev e44a4fc6d2 [TF FE] Support Assert with string tensors (#14640)
* [TF FE] Support Assert with string tensors

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

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

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

* Apply code-review feedback: better to use UnsupportedConstant

* Correct unit-test

* Replace Op with Node

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-15 19:28:34 +04:00
Maxim VafinandRoman Kazantsev 9c0ec2c9b4 Add reverse infer (#14348)
* Add reverse infer

* Add more convolutions and include transformation in normalize of tf fe

* Fix code style

* Add activations and eltwise support

* Fix code style

* Add deprecation supression

* Fix pad type

* Remove eltwise

* Remove ngraph namespace usage

* Fix code style

* Apply review feedback

* Add tests for activations and eltwise

* Make transformation friend of tensor to avoid deprecated API

* clang fix all

* Update src/common/transformations/include/transformations/common_optimizations/reverse_shape_and_type_infer.hpp

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2022-12-15 19:26:58 +04:00
Oleg PipikinandIlya Churaev 2ff0b24d92 Move ONNX reader tests from ieFuncTests to ov_onnx_frontend_tests (#14132)
* Move ONNX reader tests from ieFuncTests to ov_onnx_frontend_tests

* Fix code style

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-12-12 21:43:30 +03:00
e9e05e508a [ONNX FE] Support value freezing without specifying type (#14481)
* [ONNX FE] Support value freezing without specifying type

Implement gete_element_type method for ONNX InputModel.
Implement tests with freezing integer input and float models

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

* Update src/frontends/onnx/frontend/src/input_model.cpp

Co-authored-by: Tomasz Dołbniak <tomasz.dolbniak@intel.com>

* Update src/frontends/onnx/frontend/src/input_model.cpp

Co-authored-by: Tomasz Dołbniak <tomasz.dolbniak@intel.com>

* Update src/frontends/onnx/frontend/src/input_model.cpp

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>

* Return only element type for model inputs and add ONNX FE tests

* Rename variable in the test

* Add syntax mark

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Co-authored-by: Tomasz Dołbniak <tomasz.dolbniak@intel.com>
Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>
2022-12-11 14:58:55 +04:00
Mateusz Bencer 507cbe7045 Added support of custom domain for OpExtension (C++/Python) and ConversionExtension (Python) (#14375)
* Added support for ONNX OpExtension with custom domain

* review remarks

* move domain ctor to onnx OpExtension

* code refactor + new test

* styles applied

* [Python API] Support extensions with custom domains

* try to fix windows build error

* removed unnecessary stores
2022-12-08 17:47:45 +00:00
Roman Kazantsev 32ae862f99 [TF FE] Break the cycle in the different way (#14480)
* [TF FE] Break the cycle in the different way

Earlier solution was incorrect due to inproper handling of forward edges cases
(edges going from parent to grand-child) for which topological sorting
of nodes can be interrupted.

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

* Break the cycle by NextIteration inputs

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-08 17:23:49 +03:00
Ilya Churaev ed36ddac55 Removed legacy get_name() from descriptor::Tensor (#13934)
* Removed legacy get_name() from descriptor::Tensor

* Fixed GPU plugin

* One more fix for GPU

* Fixed typo

* Revert constructor changes

* Revert get_name for internal plugins
2022-12-07 12:57:11 +04:00
Ilya Churaev d5d67b2be8 Removed using of BWDCMP macro (#14292)
* Removed using of BWDCMP macro

* Fixed code style

* Removed type info

* Fixed ONNX tests

* Fixed CPU tests

* Fixed ExecutionNode
2022-12-07 12:47:16 +04:00
Roman Kazantsev d3fa858fcc [TF FE] Support dynamic shape Placeholder freezing and PlaceholderWithDefault (#14450)
* [TF FE] Support dynamic shape Placeholder freezing and PlaceholderWithDefault

Also, this PR contains reorganization of python unit tests for TF FE that
covers conversion and inference of different models in pbtxt.
This mini-infrastructure will be used in the future for TF FE support.

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

* Revert debug info

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-07 12:13:10 +04:00
Roman Kazantsev a945597802 [TF FE] Use _output_shapes attribute for Placeholder (#14383)
* [TF FE] Use output_shapes attribute for Placeholder

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

* Add test model

* Apply code-review feedback and remove compile warnings

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-05 23:13:53 +04:00
Roman Kazantsev aa4f4429c0 [TF FE] Prohibit compiling warnings (#14387)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-05 01:00:15 +04:00
Ilya Lavrenov 6dd8a93735 Made OpenVINO cmake scripts Linux flavors agnostic (#14384)
* Use prebuilt cmake in install-dependencies steps

* Removed building of custom python to save Azure CI time

* Adjusted conditions in cmake

* Download VPU custom kernels compiler only for x86

* Removed -pyver argument

* Improvements

* Detect glibc version

* Usage of new glic variable

* Fixed typo

* Increased glibc version for MYRIAD case

* Made OpenVINO cmake Linux flavors agnostic

* Detect glibc version on RedHat

* Use clcompiler only since ubuntu 18.04

* Universal way to detect glibc version

* Revert some changes

* Apply suggestions from code review

fixes issue with GNA

* Apply suggestions from code review

fixed typo
2022-12-04 22:55:52 +04:00
cecilia peng 1f16015802 Cecilia/paddle/decoder (#14332)
* fix AddressSanitizer: stack-use-after-scope in ov::frontend::paddle::NodeContext::get_attribute_as_any

* fix cyclic reference of op place and decoder.

* fix code style

* fix code style.
2022-12-02 09:28:52 +08:00
Nikolay Shchegolev add3b11880 [CPU] New operations: IsFinite, IsInf, IsNaN. (#14314) 2022-12-01 16:34:39 +04:00
64391cdb3f Transformation component transition to OV namespace (phase 3) (#13653)
* Use openvino pass graph_rewrite

* Use openvino pass pattern matcher

* Remove ngraph opsets

* Remove ngraph.hpp

* Remove ngraph includes

* Remove ngraph includes

* Use transformations API

* Remove ngraph includes

* Remove ngraph rt_info

* Remove unused ngraph includes

* Replace ngraph:: scope with ov:: here and there

* Remove serialize proxy header

* Remove proxy include

* Bring back a file for vpu-plugin

* Fix after upstream merge

* Remove nested namespace conflict

Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
Co-authored-by: Ivan Tikhonov <ivan.tikhonov@intel.com>
Co-authored-by: Mateusz Tabaka <mateusz.tabaka@intel.com>
2022-12-01 12:34:58 +01:00
Roman KazantsevandMaxim Vafin 38a1783527 [FE] Support freezing Placeholder without specifying type (#13984)
* [FE] Fix freezing placeholder via freeze_placeholder_with_value option

Currently, freezing placeholder via freeze_placeholder_with_value option does not work for any frontends. It happens due to absence of a node in _input_shapes dictionary.

* Add get_element_type method for InputModel

* Revert not needed changes

* Revert not needed changes

* Update freeze_placeholder_test

* Add tests for TF FE with freezing values of different types

* Fix Python API return value

* Correct returned type for get_numpy_ctype

* Apply code-review feedback

* Update src/frontends/tensorflow/src/input_model.hpp

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

* Apply code-review feedback: no tf legacy specific routine and parameter names

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2022-12-01 13:37:25 +03:00
Roman Kazantsev 5f06431aec [Install] Remove upper bound for NumPy for default installation and update upper bounds for extras (#13985)
* [Python API][Tools] Top up upper bound version for dependencies: NumPy, TensorFlow, NetworkX

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

* Remove upper-bound for TensorFlow and NumPy

* Revert "Remove upper-bound for TensorFlow and NumPy"

This reverts commit 662085df2e.

* Remove upper-bound for NumPy for default installation

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-30 09:53:06 +04:00
Georgy Krivoruchko c4e15e0883 Added support of float16 in decoder proto, test (#13891) 2022-11-29 17:17:04 +04:00
Mateusz Bencer 09637ca5f2 [ONNX FE] Improve error handling during op registration (#14201) 2022-11-28 17:30:44 +01:00
cecilia peng b955e7e514 95436: sporadic failure (#14183)
* 95436: sporadic failure

* Update input_model.cpp
2022-11-28 14:03:51 +08:00
Roman Kazantsev 1353a23f12 Fix leftovers from PR14211 (#14238)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-25 20:29:23 +03:00
Roman Kazantsev db81e50a02 [TF FE] Support unknown and dynamic rank Placeholder shape (#14211)
* [TF FE] Support unknown and undefined Placeholder shape

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

* Fix mistake in the test

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-25 09:22:42 +03:00
Roman Kazantsev cc219d085e [TF FE] Optimize and correct FusedBatchNorm translator - avoid Transposes (#14135)
* [TF FE] Optimize FusedBatchNorm translator - avoid Transposes

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

* Fix FusedBatchNorm: correct compute for batch_mean and batch_variance

* Add layer tests and fix based on them

* Mark failing test cases and bind to issue tickets

* Work around tests for FusedBatchNorm in inference mode

* Use separate fictitious constants for reserved outputs

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-24 02:49:29 +03:00
AsthestarsfalllandIlya Churaev 2edb9f7775 add paddle box coder (#12394)
Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-11-22 15:20:46 +03:00
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 TabakaandIlya Lavrenov 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 PnevskaiaandIlya Churaev 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 PipikinandIlya Churaev 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
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 KazantsevandMaxim Vafin 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