Commit Graph

111 Commits

Author SHA1 Message Date
Maxim Vafin
994b227b86 Remove None at outputs of the model, improve types handling in frontend (#15258)
* Remove None at outputs of the model, improve types handling in frontend

* Fix py code style

* Add torch dependency in pybind tests

* Fix tests if fe is disabled and add backward type cpnversion

* Move decoder tests to layer tests

* Fix codestyle

* Add comment

* Move tests to separate folder

* Update .ci/azure/linux.yml
2023-01-25 13:28:47 +03:00
Bartek Szmelczynski
3bbaa16d90 Add aten mul tests (#15223)
* add tests for aten::mul

* add mul tests to precommit

* add test cases, remove parametrization

* add reason to xfails
2023-01-25 10:01:46 +01:00
Roman Kazantsev
f12ffc0428 [MO][TF FE] Switch MO to TF FE in default mode (#15100)
* [MO][TF FE] Switch MO to TF FE in default mode

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

* Fix code-style

* Extend operations for the fallback

* Fix MO unit-tests

* Check only legacy FE for read-from-memory functionality

* Fix failures in IR comparator tests

* Fallback to the legacy FE in case tensorflow_custom_operations_config_update

* Revert copyright and update

* Fix unit-test since it is oriented for the legacy FE

* Fallback to the legacy FE in case deprecated config options

* Fix value propagation from deprecated config option

* Fix the Result node name in case cutting by input port for outputs

* Set Result node name aligned with the Legacy Frontend

* Reformat a list of operations to fallback

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-01-25 07:54:56 +04:00
Georgy Krivoruchko
910ed759c3 [TF] Added BroadcastTo layer tests (#15205) 2023-01-24 13:55:59 +04:00
Roman Kazantsev
5c10e3741e [TF FE] Support ClipByValue operation (#15246)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-01-23 10:41:06 +04:00
Ekaterina Aidova
2ec116f592 [PT FE]: support conv transpose (#15191)
* [PT FE]: support conv transpose

* apply comments
2023-01-22 07:03:54 +00:00
Bartek Szmelczynski
0fce8d29f8 add tests for aten::eq (#15222)
* add tests for aten::eq

* Update tests/layer_tests/pytorch_tests/test_eq.py

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

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-01-21 21:07:47 +03:00
Ekaterina Aidova
18bfa727bd [PT FE]: support aten::glu and aten::sigmoid_ (#15185)
* [PT FE]: support aten::glu and aten::sigmoid_

* upd headers

* Update src/frontends/pytorch/src/op/glu.cpp

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

* return back opset

* Update op_table.cpp

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-01-21 21:05:20 +03:00
Roman Kazantsev
0d201376df [Tests] Fix rest of NumPy deprecated types (#15245)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-01-21 11:17:52 +00:00
Ekaterina Aidova
595d447f2e [PT FE]: support aten::log, aten::log2 (#15184) 2023-01-20 20:42:49 +00:00
Maxim Vafin
53e699eaba Add PyTorch Frontend (#15069)
* WIP

* update input validation

* upsample_nearest2d and upsample_bilinear2d support

* support leaky_relu add test for inplace relu

* update tests, add handler for ListConstruct

* Do not create extra outputs in main body

* add positive case with non-default value

* update testing

* update test, handle non constant size and scale

* remove ie_device

* add aten::group_norm support

* refactoring

* Enable aten::reshape_as operator and add layer test

* more tests

* Fix typo in test

* Resolve conflicts

* fix code style

* expand init version

* expand_as and tests

* add transposed convolutions support

* add tests

* initial support pad

* add circular

* update for differenced in rang

* cleanup

* refactor

* more tests

* apply review comments

* Add split+listunpack transformation

* Add split+getitem transformation

* Add test cases

* fix typo

* Minor fixes

* Apply suggestions from code review

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

* Apply suggestions from code review

* Small fix

* Support converting models without freezing

* support BoolTensor and masked_fill

* add support aten::rsqrt and test for sqrt

* add cumsum and type_as

* support clamp

* support more matrix operations

* add tests

* Add aten::adaptive_avg_pool3d and layer test

* Change to rank

* fix code style in utils.hpp

* Update src/frontends/pytorch/src/op_table.cpp

Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>

* fix code style

* add tests

* add xfail

* remove unnecessary broadcast

* Changes required by style formater

* aten::_convolution_mode

* Changes requested by a reviewer

* remove code duplication

* add aten::unbind transformation

* full, zeros and ones

* Support getattr list and unrolling nested ifs

* Remove line change

* Enable back freezing in layer tests

* Add aten::norm operator and layer test

* Small fix in layer test

* add aten::roll

* add empty line

* Typo fix

* fix style

* fix style v2

* add pytorch frontend to wheel

* Support all types of numeric norms

* add check for dynamic shapes

* remove random change

* merge statements

* add min and max ops support

* aten::max and aten::min

* move axes range creation to utils

* add transformation for tuple results, update tests

* fix copyright

* aten::var

* add test and translation for numel

* ignore aten::clone

* Add layer test for aten::add operator

* Fix typo

* Remove redundant import

* Add parameter name in forward method

* fix code style

* apply review comments

* Add size+slice+listunpack transform

* Add append listunpack transformation

* Register transformation

* aten::where

* update realization

* Fix issue with getitem

* Fix getitem

* Add layer test for aten::view operator

* Add tests for listunpack

* add test for aten::div

* fix style

* update aten::adaptive_max_pool2d

* fix style

* add aten::floor_divide

* aten::addmm support alpha and beta with different dtype

* nonzero

* Change test name

* update test cases to include other dtypes

* aten::arange

* prim::max transformation for ListConstruct

* rename op

* generalize conv2d implementation for conv1d and conv3d

* aten::unsqueeze_ and tests for aten::unsqueeze (#70)

* add aten::le, aten::ge and tests for other tensor comparision ops (#74)

* add support trigonometry ops (#73)

* support aten::upsample_bicubic2d, aten::ceil, aten::floor (#72)

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

* extend and add tests for avg_pool and max_pool

* extend tests and constant filling ops

* fix as_tensor and full ops

* aten::repeat

* fix code style

* aten::im2col (#61)

* aten::im2col

* remove debug prints, add number of elements check

* fix failed tests

* move helper function

* use split

* Update src/frontends/pytorch/src/op/im2col.cpp

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

* fix code style

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

* Update src/frontends/pytorch/src/utils.cpp

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

* fix code style

* revert removeinf floordiv, add floor_divide file

* Fix merge issue

* reduce code duplication

* refactor

* Add len operator with layer test

* update clamp to support mixed precision and add support torch.long for constants

* aten::selu

* add trunc mode to div

* add else statement

* Add test case to layer test

* Fix submodules (#88)

* update test file

* fix namings

* execute in fp64 and convert back to initial precision

* Revert set_output_size to master. Small fix in If validate

* Fix build and code style

* fix failed tests

* Add torchvision::nms operator and layer test

* Change requested by a reviewer

* Remove div test

* convert constants to input type

* Mark some cases in div tests as xfail (#93)

* Small refactoring (#94)

* Small refactoring

* Fix type

* Fix python codestyle

* Incremental fix code style (#95)

* Fix style (#96)

* Fix copyright

* Fix code style

* Branch clean up (#97)

* Optimize includes and force opset10 (#98)

* Optimize includes

* Force opset10 in pt fe

* Fix codestyle (#99)

* Fix style

* Fix clang codestyle

* Fix cerr with debug log

* Update src/bindings/python/src/pyopenvino/frontend/pytorch/decoder.cpp

* Add pytorch dependency only if pytorch frontend is enabled

* Update src/bindings/python/src/pyopenvino/CMakeLists.txt

* Add layer tests to precommit (#100)

* Add layer tests to precommit

* Remove accidentally added files

* Apply code style on layer tests

* batch norm tests and fixes

* move default weight and bias to else block

* reduce code duplication

* Changes requested by a reviewer

* Changes requested by a reviewer

* Remove dependency from pytorch in pyopenvino (#102)

* Remove dependency from pytorch when fe is disabled

* Change docstring

* Remove pytorch FE dependency from pyopenvino

* Apply codestyle (#107)

* Apply codestyle

* Remove commented line

* Apply suggestions from code review

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

* Fix mock FE test (#108)

* Fix mock PE test (#111)

* Revert changes in StridedSlice (#114)

* Small refactoring (#116)

* Small refactoring

* Fix codestyle

* Apply suggestions from code review

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

* Apply suggestions from code review

* Update src/frontends/pytorch/src/op/group_norm.cpp

* Fix cmake copyright define (#117)

* Update src/frontends/pytorch/src/op/arange.cpp

* Apply suggestions from code review

* Update build configs (#120)

* FIx build configs

* Update type cast in full.cpp

* Apply review feedback (#121)

* Apply suggestions from code review

* Apply suggestions from code review

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

* Fix issue after master merge (#122)

* Fix issue after master merge

* Fix build

Co-authored-by: eaidova <ekaterina.aidova@intel.com>
Co-authored-by: bszmelcz <bartosz.szmelczynski@intel.com>
Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>
Co-authored-by: sikorsl1 <leonard.sikorski@intel.com>
Co-authored-by: Leonard Sikorski <l.sikorski123@gmail.com>
Co-authored-by: Mateusz <mateusz.mikolajczyk@intel.com>
Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-01-18 18:16:57 +04:00
Ilya Lavrenov
c4eeecfec5 Remove myriad plugin (#15131)
* Removed Intel MYRIAD plugin

* Removed Intel MYIAD from CI files

* Removed Intel MYRIAD from cmake folder

* Removed MYRIAD, HDDL from samples

* Removed MYRIAD, HDDL from scripts folder

* Removed MYRIAD from bindings folder (C and Python API)

* Removed MYRIAD tests

* Removed MYRIAD from tests folder

* Removed MYRIAD from tools folder

* Removed HDDL (VAD), MYRIAD (NSC2) from documentation

* Fixed build for AUTO unit tests

* Fixed clang code style

* Fixed comments and issues

* removed MYRIAD from AUTO tests

* Disabled MULTI tests in CI

* Update docs/OV_Runtime_UG/auto_device_selection.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>

* Update docs/get_started/get_started_demos.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>

* Update docs/OV_Runtime_UG/deployment/local-distribution.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2023-01-18 15:19:44 +04:00
Roman Kazantsev
5043797b1c [TF FE] Support Group Convolutions (#15130)
* [TF FE] Support Group Convolutions

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

* Split cases of regular Convolution and GroupConvolution operations

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-01-17 16:15:19 +04:00
Roman Kazantsev
04c9c28869 [TF FE] Fix LRN operation and test it (#15145)
It allows to fix inference results mismatch for some models

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

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-01-16 21:31:24 +04:00
Ilya Churaev
0c9abf43a9 Updated copyright headers (#15124)
* Updated copyright headers

* Revert "Fixed linker warnings in docs snippets on Windows (#15119)"

This reverts commit 372699ec49.
2023-01-16 11:02:17 +04:00
Ruslan Nugmanov
4601b31bd0 Keras to tflite version of tests (#15042)
* keras to tflite version of tests

* Update tests/layer_tests/common/tf2_layer_test_class.py

Co-authored-by: Evgenya Stepyreva <eva.my.link@gmail.com>

* moved out tf utility functions from modules with tf_layer_test classes to tf_utils module

* moved out tf utility functions from modules with tf_layer_test classes to tf_utils module and tflite_utils modules

Co-authored-by: Evgenya Stepyreva <eva.my.link@gmail.com>
2023-01-13 10:29:50 +00:00
Roman Kazantsev
01932428b8 [TF FE] Support While and StatelessWhile operations (#15043)
* [TF FE] Support While and Stateless While operations

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

* Reimplement setting outputs

* Apply code-review: while input number and copy-rights

* Apply code review feedback: correct template and fix typo

* Apply code-review feedback: more strict checks in reorder_ops_by_names

* Specify type for the generated test data

* Minor change to re-run CI

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-01-11 21:51:56 +00:00
Georgy Krivoruchko
0e99a5c44a Added TF Deconvolution layer tests (#14906)
Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-01-11 21:34:08 +00:00
Roman Kazantsev
af6ed211d6 [TF FE] Support TF2 Object Detection models (#14979)
* [TF FE] Support TF2 Object detection models

For support of OOB conversion of OD models (Faster RCNN, SSD models) several fixes were done
for Select, BroadcastArgs, Slice, and Concat operations.
Implement tests for each case

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

* Switch off Transpose Sinking that breaks some model conversion

* Apply code-review feedback: copyright and extra commented out code

* Mention that for concat this is workaround

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-01-09 17:36:42 +03:00
Vladimir Paramuzov
e23b8492c5 [GPU] Change default infer precision to fp16 (#14752) 2023-01-04 15:55:44 +04:00
Georgy Krivoruchko
8dc946af5c Added TF Convolution layer tests (#14851) 2023-01-03 17:00:25 +04:00
Roman Kazantsev
36a16c8441 [TF FE] Refactor RandomUniform support and provide more test coverage (#14847)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-29 15:56:39 +04:00
Roman Kazantsev
6b19acb3f3 [TF FE] Fix ResizeBilinear for uint8 type and test Resize operations (#14801)
* [TF FE] Fix ResizeBilinear for uint8 type and test Resize operations

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

* Convert to fp32 right before interpolation

* Add one more test for fp64

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-23 15:39:46 +00:00
Ruslan Nugmanov
250e075ee9 TFlite layer tests (#14760)
* tflite layer tests

* tflite inference

* removed part to remove

* clean-ups

* removes input preprocessing for tflite

* Apply suggestions from code review

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
Co-authored-by: Evgenya Stepyreva <eva.my.link@gmail.com>
2022-12-23 05:44:44 +03:00
andriipx
31112e2c10 Changed fw_eps for test_conv_5D_precommit tests (#14573)
* changed fw_eps for test_conv_5D_precommit tests

* fixed cases with changing fw_eps for test_conv_5D_precommit tests

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2022-12-22 19:42:33 +03: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
Anastasia Kuporosova
09b24a1932 Fix XML vulnerabilities found by bandit (#14415)
* Fix vulnerabilities found by bandir

* fix vulnerabilities in tests dir

* fix for mo

* some changes
2022-12-06 11:46:26 +01:00
Nikolay Shchegolev
add3b11880 [CPU] New operations: IsFinite, IsInf, IsNaN. (#14314) 2022-12-01 16:34:39 +04:00
Georgy Krivoruchko
c4e15e0883 Added support of float16 in decoder proto, test (#13891) 2022-11-29 17:17:04 +04:00
Georgy Krivoruchko
5c638df1c3 TensorFlow AddN layer test implementation (#13533) 2022-11-28 15:46:59 +04:00
Roman Kazantsev
f80babff51 [Layer Tests][TF FE] Activate layer tests for FusedBatchNorm in training mode in the precommit (#14240)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-26 00:25:00 +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
Maxim Vafin
580c0c6b90 Fix squeeze shape infer to not change axis value (#13975)
* Fix squeeze shape infer to not change axis value

* Fix TensorIterator

* Revert Unsqueeze changes
2022-11-22 21:24:03 +04:00
Anastasiia Pnevskaia
558714ccdd Support of passing model from memory to mo.convert_model() (#13457)
* convert() method added.

* Moved conversion to convert() method.

* Fixed commits.

* Output dir fix.

* Added objects support for extesions param.

* Added support for transformations_config extension objects.

* Input to str unit tests.

* Added tests, added comments.

* Updated BOM.

* Removed commented code.

* Fixed extension passing.

* Small corrections.

* Fixed for python 3.6.

* Small fix.

* Moved dir creating to ov.serialize(), removed mo.serialize(), small fixes.

* Small fix.

* Small correction.

* Removed coping of params, moved convert implemetation to separate module.

* Import fixes.

* Moved hiding of exceptions to main().

* Updated comment.

* Fixed unit tests.

* Comment changed.

* Fixed dir creating.

* Tests fixed.

* Small fixes.

* Test fix.

* Added meta data generation, removed printing of execution time for silent mode.

* Import fix.

* Conflict fix.

* Fixed error.

* Fix for custom config.

* Added version, data_type params to help.

* Added mo.convert() full-functional tests.

* Small corrections.

* Comment correction.

* Moved convert to openvino package, moved LayotMap and InputCutInfo to openvino.convert.

* Added help param.

* Wrong change removed.

* Small fix.

* Removed unnecessary comments.

* Removed .xml extension check from append_ir_info.

* Added missed file.

* Fixed error.

* Fix for bool value in InputCutInfo.

* Moved InputCutInfo, LayoutMap to openvino.tools.mo.

* Moved InputCutInfo, LayoutMap to openvino.tools.mo.

* Moved check and read_model to emit_ir.

* Small correction.

* Added comment.

* Added unit_tests with convert().

* Small corrections.

* Removed convert alias from openvino.

* Fixed conflicting unit tests.

* Removed unnecessary warnings.

* Params check fix.

* Small correction.

* Added paths checks.

* Added negative tests for to_str methods, fixed errors.

* Added tuples support in input parameter.

* Added direct support of BytesIO and TF1 graph def.

* Moved reminders to update OV and use API 2.0 to main().

* Fixed keras loading.

* Returned .mapping file generating.

* Added positional input_model param.

* Added test for unnamed input_model.

* Optimize imports.

* Added more informative error for brackets syntax in --input.

* Keras direct model support.

* Keras direct model support.

* Small fix.

* Conflict fix.

* Conflict fix.

* Added direct support of BytesIO and TF1 graph def.

* Fixed keras loading.

* Keras direct model support.

* Keras direct model support.

* Small fix.

* Tests for importing from memory.

* Support of other tf/pytorch formats.

* Updated mo_convert extensions tests to use ov models.

* Removed debug output.

* Implemented PyTorch converting logic.

* Small corrections.

* Small corrections.

* Added comments.

* Fixed for single input case.

* Added switching between save to file and BytesIO.

* Small fixes.

* Rename convert() to convert_model().

* Added env variable to disable converting to onnx.

* Tests refactoring.

* Add MO Python API tests to precommit.

* Add MO Python API tests to precommit.

* Added PyTorch to layer tests requirements.

* Added supported formats description.

* Fixed errors, added tests.

* Fixed bugs, added support of numpy and ov.Tensor sample_input.

* Added more torch.Size tests.

* Small correction.

* Renamed sample_input->example_inputs.

* Tests refactoring.

* Code style.

* Added support of dict in example_inputs.

* Small correction.

* Added removing of tmp onnx model in case of conversion error.

* Fix for lists of tensors in example_inputs.

* Support of dynamic axes for Keras layer, Keras module.

* Removed disabling of eager execution.

* Tests fixed.

* Added pytest requirement for layer tests.

* Added convert_model to openvino.runtime, fixed test runs.

* Small fix.

* Tests fix.

* Better help message.

* Error fixed.

* Renamed example_inputs->example_input.

* Small fix.

* Added support of list of layouts.

* Removed wrong change.

* Added tuple support for --layout.

* Removed convert_model from openvino.runtime.

* Use of default onnx opset version.

* Added support of dynamic input shapes without example_input.

* Made better error message.

* Removed stack trace from exceptions.

* Fixed tests.

* Small fix.

* Removed wrong change.

* Added import model from memory tests in unit tests.

* Replaced compare_functions() with MO IR reader compare.

* Removed test.

* Removed not needed change.

* Fixed conflicts.
2022-11-19 11:21:44 +03:00
Ivan Tikhonov
8d3b382ca9 fix DynamicStitch tests (#14005) 2022-11-16 00:24:38 +03: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
Georgy Krivoruchko
951be58dc3 Extended coverage of TensorFlow layer tests (#13547) 2022-11-14 15:50:43 +04: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
Roman Lyamin
fce64834d2 [GPU] PReLU broadcast 1d slope case fix (#13951) 2022-11-14 11:03:10 +04:00
Roman Lyamin
5eae673220 [MO TESTS] PReLU tests fix (#13960) 2022-11-11 23:39:17 +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
Roman Kazantsev
aaefe0a256 [Common] Unique decomposition: fix the single element case (#13918)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-10 01:25:43 +03: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
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
Roman Kazantsev
954b9d3149 [TF FE][Tests] Add layer tests for SegmentSum and DynamicPartition in the pre-commit (#13812)
After fixes for TopK and arithmetic operations for integer tensors, we are ready to switch
these tests in the pre-commit

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

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-04 05:02:48 +03: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
Andrei Kochin
592e250714 [MO TESTS] replace Caffe2 backend with ONNX RT (#13759)
* [MO Tests] Replace Caffe2 backend with ONNX RT

* fix broken PReLU test - broadcastable shape

* xfail GPU test
2022-11-01 23:13:47 +00:00