Commit Graph
412 Commits
Author SHA1 Message Date
Maxim Vafin 6a9608b075 [PT FE] Fix GroupConvolution weights reshape (#15560)
* Fix GroupConvolution weigts

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

* Update convnd.cpp
2023-02-08 14:11:35 +01:00
Roman Kazantsev 180e77f047 [TF FE] Refactor Softmax and add layer test (#15553)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-07 16:22:36 +01:00
Roman Kazantsev 2be9cdc5c5 [TF FE] Refactor Reshape and add layer test (#15549)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-07 16:19:37 +01:00
Roman Kazantsev e33b874a40 [TF FE] Refactor Shape translator and add layer test (#15551)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-07 18:00:53 +04:00
Roman Kazantsev 44eedc8870 [TF FE] Refactor Range and add layer test (#15548)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-07 12:18:04 +00:00
Roman Kazantsev b0ffec48be [TF FE] Support TensorList operations and RNN layers (#15503)
* [TF FE] Support TensorList operations and RNN layers

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

* Remove TensorList operations from the fallback

* Fix computation of dummy tensor size

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-06 22:38:21 +00:00
Roman Kazantsev b544308616 [TF FE] Refactor Unpack and add layer test (#15519)
* [TF FE] Refactor Unpack and add layer test

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

* Update tests/layer_tests/tensorflow_tests/test_tf_Unpack.py

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-06 19:05:39 +04:00
Roman Kazantsev 7845ca499e [TF FE] Add layer test for Pack (#15518)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-06 08:49:29 +00:00
Roman Kazantsev 3605b7de54 [TF FE] Add layer tests for If operation (#15512)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-06 11:16:02 +04:00
Roman Kazantsev 3d0a6a1d04 [TF FE] Refactor ListDiff translator and add layer test (#15499)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-06 11:08:36 +04:00
Roman Kazantsev 2cae7479a0 [TF FE] Refactor LinSpace translator and add layer test (#15495)
* [TF FE] Refactor LinSpace translator and add layer test

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

* Remove start_shape from test parameters

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-03 20:14:47 +00:00
Roman Kazantsev d9dbf23ea3 [TF FE] Refactor LeakyRelu and add layer tests (#15487)
* [TF FE] Refactor LeakyRelu and add layer tests

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

* Support LeakyRELU for TensorFlow Lite

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-03 18:28:03 +01:00
Ekaterina Aidova cd340301d8 [PT FE]: support prim::min, prim::ListConstruct as output and fix aten::getitem for prim::ListConstruct (#15470) 2023-02-02 22:36:07 +00:00
Maxim Vafin 3c919134b1 Fix issue with If and bool type (#15457) 2023-02-02 22:32:40 +01:00
566fae2b01 Add aten stack transformation (#15311)
* add support for aten::stack

* add new lines

* updated aten stack transformation

* add comments to the code

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
2023-02-02 20:15:28 +01:00
Roman Kazantsev d8dfcac729 [TF FE] Refactor translators for Reduce ops and add layer tests (#15452)
* [TF FE] Refactor translators for Reduce ops and add layer tests

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

* Correct number of inputs

* Use already implemented logical operations tests

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-02 18:24:31 +01:00
Roman Kazantsev d86ba0742c [TF FE] Refactor ExtractImagePatches and add tests (#15456)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-02 15:28:31 +01:00
Roman Kazantsev 2fd9026289 [TF FE] Refactor ExpandDims translator and add tests (#15454)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-02 16:43:45 +04:00
Anastasiia Pnevskaia 347cd0e180 TF FE import model from memory (#15242)
* Added import model from memory for TF FE using string.

* Small correction.

* Clang format.

* Code correction.

* Implemented model importing to TF FE using temporary file.

* Removed wrong changes.

* Added check.

* Removed code duplication.

* Corrected logging of cli parameters.
2023-02-02 12:07:30 +04:00
Vitaliy Urusovskij 29b15233c7 Remove OV_FRONTEND_PATH (#15364)
* Remove "OV_FRONTEND_PATH" from `FrontEndManager`

* Remove "OV_FRONTEND_PATH" from layer_tests

* Remove "OV_FRONTEND_PATH" from find_ie_version.py

* Remove "OV_FRONTEND_PATH" from .ci/

* Move `ov::get_plugin_path` to file_util.hpp (ov::util)

* Add `register_front_end(name, path)` FEM public API

* Enable frontend/ tests

* ClangFormat

* Remove OV_FRONTEND_PATH from FE shared utils

* Add `register_front_end()` to PythonAPI

* Update Py tests with registering of "mock_py" FE

* ClangFormat

* Leftovers

* Fix SegFault with `register_front_end(name, lib_path)`

* Add FE_LIB_PRE and FE_LIB_SUFFIX to `ov_core_unit_tests`

* Fix format

* Update `testFailRegisterFEByWrongPath`
2023-02-02 08:19:35 +04:00
Maxim VafinandRoman Kazantsev 92649105ed Add eltwise types resolving. Support big int constants. (#15415)
* Add eltwise types resolving. Support big int constants.

* Update src/bindings/python/src/openvino/frontend/pytorch/decoder.py

* Small fix

* Fix some cases

* Add tests for add in different types

* Add tests for mul

* Add tests for sub and div

* Small fixes

* Return list handling (needed for empty lists)

* Add test for empty list

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

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

* Use refs instead of ptrs

* Apply suggestions from code review

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

* Apply code review suggestions

* Fix code style

* Add more eltwise ops

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-02-02 02:15:33 +01:00
Roman Kazantsev ab2038041d [TF FE] Add missed layer tests to nightly (#15424)
It needs to be tested on GPU

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-01 11:31:16 +00:00
Mateusz Mikolajczyk a769cfe7e8 [PT FE]: Add aten::view transformations (#15339) 2023-02-01 12:14:17 +01:00
Leonard Sikorski cab559b478 [PT FE] Add aten::repeat_interleave operator (#15274) 2023-02-01 11:45:04 +01:00
Pavel Esir da9470864c [MO] add extractor for TF Any operation (#15255)
* added extractor for TF Any operation

* enabled existing 'Any' layer test for legacy TF frontend
2023-02-01 08:59:15 +04:00
Ekaterina Aidova d57862edee [PT FE]: support transformation for case aten::size + aten::__getitem__ (#15368) 2023-01-31 19:08:13 +01:00
Leonard Sikorski 1dd84e2074 [PT FE] Add aten::unfold operator with layer test (#15316) 2023-01-31 18:29:32 +01:00
Leonard Sikorski f66f31a3b0 Add leyer test for aten::sub operator (#15406) 2023-01-31 19:50:05 +04:00
Ekaterina Aidova a12de8183c [PT FE]: handle prim::ListConstruct + aten::pad case (#15288) 2023-01-31 14:08:22 +00:00
Ekaterina Aidova 758a0dea56 [PT FE]: support grid sampler (#15243) 2023-01-31 14:04:37 +04:00
Ekaterina Aidova b2ce43a172 [PT FE]: support aten::instance_norm (#15213) 2023-01-31 08:51:02 +00:00
Roman Kazantsev d1114102d7 [TF FE] Refactor CropAndResize support (#15398)
* [TF FE] Refactor CropAndResize support

Make it more reshape-oriented. It allows to convert Mask R-CNN model without config file.

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

* Update src/frontends/tensorflow_common/src/op/crop_and_resize.cpp

* Use Gather for coordinates swapping

* Update src/frontends/tensorflow_common/src/op/crop_and_resize.cpp

* Update src/frontends/tensorflow_common/src/op/crop_and_resize.cpp

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-01-31 07:28:21 +00:00
52c2efb5e1 Layer test for unary ops (#15331)
* Adds base class and first test for tflite_layer tests

* adds layer tests for unary ops

* adds functionality to get tensors from ops

* 1. adds functionality to use custom funcs for input generation
2. removed UNIQUE op from testing ops

* adds functionality to use custom dtypes

* Cast operation support

* Enhanced tfl layer tests

* Trigger tfl layer tests in .ci

* Apply suggestions from code review

---------

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
Co-authored-by: Evgenya Stepyreva <eva.my.link@gmail.com>
Co-authored-by: missjane <estepyreva@gmail.com>
2023-01-30 10:11:41 +00:00
Mateusz Mikolajczyk ba5ddf2e49 [PT FE]: Add aten::meshgrid + prim::ListUnpack transformation (#15195)
* Add meshgrid listunpack transformation

* Add case when indexing is not specified

* Fix typos

* Fix problem with 1 input execution & missing runtime_info

* Fix issue with meshgrid placed in loop body

* Add tests to precommit

* Apply sugestions from review

* Fix input 0

* Improve indexing attribute read
2023-01-28 10:08:25 +03:00
Leonard Sikorski 949b9623a4 [PT FE] Add aten::__and__ operator with layer test (#15365)
* Layer test for aten::__add__ operator

* Not working version of aten::__and__

* Simplified implementation of ante::__and__ operator

* Fix file format
2023-01-28 10:06:06 +03:00
Bartek Szmelczynski ce4c082cb2 add aten::topk (#15221)
* add aten::topk

* remove commented lines

* remove white space

* move include to invidual ops

* swithc include statements

* fix style

* trim test cases
2023-01-27 09:34:55 +01:00
Ekaterina Aidova 3f5d7ad7a0 [PT FE]: support aten::var_mean and aten::remainder (#15193)
* [PT FE]: support aten::var_mean and aten::remainder

* upd headers

* fix gather version
2023-01-26 14:30:42 +00:00
Georgy KrivoruchkoandRoman Kazantsev 5637fd547e [TF FE] Added TF Cumsum layer test (#15298)
Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-01-26 12:46:20 +00:00
Maxim Vafin 84a4e3bbf4 Try to fix sporadic sum layer test fail (#15304) 2023-01-26 16:08:30 +04:00
Ekaterina Aidova 6475165833 [PT FE]: supports eye, tril, triu, tensor.fill_ and implicit scalars (#15187) 2023-01-25 21:04:56 +03:00
Georgy KrivoruchkoandRoman Kazantsev be3ed31513 [TF FE] Added CTC Greedy Decoder layer test with fixes (#15296)
* [TF FE] Added CTC Greedy Decoder layer test with fixes

* Update src/frontends/tensorflow_common/src/op/ctc_greedy_decoder.cpp

* Update src/frontends/tensorflow_common/src/op/ctc_greedy_decoder.cpp

* Update src/frontends/tensorflow_common/src/op/ctc_greedy_decoder.cpp

* Update src/frontends/tensorflow_common/src/op/ctc_greedy_decoder.cpp

* Update src/frontends/tensorflow_common/src/op/ctc_greedy_decoder.cpp

* Update src/frontends/tensorflow_common/src/op/ctc_greedy_decoder.cpp

* Removed ov:: and fixed codestyle

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-01-25 17:08:39 +03:00
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
Albert AnglesandDaria Ilina 711e2cbab0 enable first_inference_latency (first_inference+time_to_inference) (#14829)
* add time_to_first_inference_result KPI as sum of inf latency values

* append unit time after the value

tested locally, worked

* Revert "append unit time after the value"

This reverts commit 428b8cafdc.

* remove metric

* revert https://github.com/openvinotoolkit/openvino/pull/14829/commits/42dd271c3b96660cd59deb92bfdf5f0d022e37fc

* enable { SCOPED_TIMER(first_inference_latency); }

* enable first_inference_latency

tested locally, it works

* remove trailing whitespace

Co-authored-by: Daria Ilina <daria.krupnova@intel.com>
2023-01-23 19:48:07 +03: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 SzmelczynskiandMaxim Vafin 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 AidovaandMaxim Vafin 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