955 Commits
Author SHA1 Message Date
Bo Liu 6b57360c55 Fix warnings for Paddle Frontend (#19476)
* Fixed warnings for Paddle Frontend

* fix CI linux-gnu-9 build fail issue
2023-08-30 12:08:08 +04:00
Xiuchuan Zhai 36b9de1f25 enable sin/cos && fix top_k_v2 (#17525) 2023-08-30 08:55:57 +08:00
Roman Kazantsev 928c75623b [JAX][TF Hub][TF FE] Support XlaConvV2 operation and add JAX test (#19466)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-08-29 12:28:12 +04:00
Maxim Vafin c5b64e458b [PT FE] Align bool types and same bit int types (#19399)
* [PT FE] Align bool types and same bit int types

* Fix max value
2023-08-24 22:30:59 +02:00
Roman Kazantsev 8df85badf8 [TF Hub][TF FE] Support TensorListLength and TensorListResize operations (#19390)
* [TF Hub][TF FE] Support TensorListLength and TensorListResize operations

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

* Add test with empty tensor list

* remove assert

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-08-24 17:54:13 +02:00
Maxim Vafin 4882ccde03 [PT FE] Fix issue when FakeQuantize is not inserted after regular operations (#19314) 2023-08-22 17:18:23 +02:00
Roman Kazantsev 5539d052b0 [JAX][TF Hub][TF FE] Introduce JAX layer tests and support of XLA operations (#19269)
* [JAX][TF Hub][TF FE] Introduce JAX layer tests and support of XLA operations

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

* Fix JAX layer tests infa

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

* Extend run for JAX layer tests

* Use ovc convert_model

* Fix translator and extend layer test cases

* Exclude jax testing on Windows

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-08-21 16:01:48 +04:00
Roman Kazantsev 19ff7fba3d [TF FE] Fix support of CTCLoss and add tests to pre-commit (#19291)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-08-21 14:26:36 +04:00
Maxim Vafin d55e45f677 [PT FE] Support non boolean inputs for __or__ and __and__ operations (#19268)
* [PT FE] Support non boolean inputs for __or__ and __and__ operations

* Add test for __or__
2023-08-21 10:55:30 +02:00
Roman Kazantsev 24ddf1b274 [TF FE] Use regular Convolution in case dynamic input channels (#19253)
* [TF FE] Use regular Convolution in case dynamic input channels

This solution is aligned with the legacy frontend but it has limitation.
This is a temporal solution until the core obtains ShapeOf evaluator.

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

* Remove unused variable from the test

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

* Fix unit-test

* Update mo unit-test

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-08-18 13:39:59 +04:00
Georgy Krivoruchko e4bed7a31c [ONNX] Fixed issue with missing sort when wstring path (#19250)
* Fixed issue with missing sort when wstring path

* Fixed CI linux builds
2023-08-18 01:24:59 +04:00
a6719ef2be Improvements for 2023.1 release (#19168)
* TorchFX caching bugfix and improvements

* Fixed inconsistent env variable for Backend device

* Identify PyTorch FrontEnd Decoder type

* Added import statement in init files

* Registered ts_openvino as a separate backend

* Added caching fix and removed extraneous code

* Changed the name of ts backend

* Fixed issue with local temporary object

* Removed import statement from init files

* Changed the documentation

* Added get_supported_ops method for decoders

---------

Co-authored-by: Cavus Mustafa <mustafa.cavus@intel.com>
Co-authored-by: ynimmaga <yamini.nimmagadda@intel.com>
2023-08-16 15:13:21 +02:00
Maxim Vafin daa4f17a0a [PT FE] Revise usage output vs node in frontend (#19215)
* [PT FE] Revise usage output vs node in frontend

* Fix code style
2023-08-16 17:05:25 +04:00
yanlan song 13f8ff4a40 fix rt_info meta parse race condition (#19196)
* fix a possible race condition

Signed-off-by: fishbell <bell.song@intel.com>

* clang

Signed-off-by: fishbell <bell.song@intel.com>

* reimpl

Signed-off-by: fishbell <bell.song@intel.com>

* add cases

Signed-off-by: fishbell <bell.song@intel.com>

* implement test in 2.0

Signed-off-by: fishbell <bell.song@intel.com>

* clean up unchanged files

Signed-off-by: fishbell <bell.song@intel.com>

* add pragma once

Signed-off-by: fishbell <bell.song@intel.com>

---------

Signed-off-by: fishbell <bell.song@intel.com>
2023-08-15 15:33:01 +00:00
Georgy KrivoruchkoandAndrei Kochin 18ab677952 [TF FE] Enabled MMAP for SavedModel and MetaGraph (#18471)
* Moved mmap to openvino/util as a shared functionality

* Enabled MMAP for SavedModel and MetaGraph

* Fixed CMake

* Fixed a lost line

* Simplified code for compilers

* Aligned with an actual master

* Enabled mmap by default and added test

* Suppressed warning, added test for MetaGraph, additional messages

---------

Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
2023-08-15 14:36:08 +00:00
Georgy Krivoruchko 66345ed9fc Removed randomization on frontend size for RandomNormal (#19114) 2023-08-15 11:22:20 +04:00
Maxim Vafin e49b2c05f1 [PT FE] Fix behavior of convert_partially method to align with new description (#19147)
* [PT FE] Fix behaivior of convert_partially method to align with new description

* Simplify

* Do not add a message to exception of get_converted_model

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

* Supress normalize exception only when model is valid

* Create TranslateSession in own scope
2023-08-14 16:56:06 +00:00
Mateusz Mikolajczyk f1d61f72ac [PT FE] Add aten::tensor_split transformation (#19144)
* Add aten::tensor_split

* Fix formating

* Reduce number of test cases

* fix requested changes
2023-08-14 18:31:38 +02:00
Roman Kazantsev 600c2d8283 [TF FE][TF Hub] Fix conversion of SavedModel with only numerical names operations (#19166)
* [TF FE] Fix conversion of SavedModel with only numerical names operations

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

* Compare tensor names in the unit-test

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-08-14 14:10:53 +00:00
Maxim Vafin b10b773f0c [PT FE] Support aten::randint and aten::index_put_ on mask (#19158)
* [PT FE] Support aten::randint and aten::index_put_ on mask

* Fix code style
2023-08-14 15:08:08 +02:00
Georgy Krivoruchko 46f428eeac [ONNX] Implemented cache for MMAP handles (#19130)
* Implemented cache for MMAP handles

* Applied comments and fixed behavior when m_data_length==0

* Aligned data length calculation with no-MMAP implementation

* Removed unused code
2023-08-14 15:56:59 +04:00
Roman Kazantsev 329abd8864 [TF FE][TF Hub] Support UnsortedSegmentSum operation (#19165)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-08-13 17:49:38 +00:00
Ilya Lavrenov 6067ab17ba Aligned target and files (libraries) names (#19161) 2023-08-13 11:31:44 +04:00
Roman Kazantsev 545c5bbde1 [TF FE][TF Hub] Support FakeQuantWithMinMaxArgs operation (#19154)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-08-11 16:58:35 +00:00
edc8015a65 Fixed description for convert_partially (#19133)
* Update src/frontends/common/include/openvino/frontend/frontend.hpp

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

* Better and correct description of convert_partially (normalize or not normalize)

* Update src/frontends/common/include/openvino/frontend/frontend.hpp

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

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-08-11 17:29:56 +04:00
Ekaterina Aidova 9fd8a13fe6 [PT FE] aten::concat (#19101)
* [PT FE] aten::concat

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

* add out

* fix tests
2023-08-11 15:49:18 +04:00
Maxim Vafin cc08b0091e [PT FE] Remove torch strides compensation (#19129) 2023-08-11 10:46:04 +02:00
Maxim Vafin f5f221a3a9 [PT FE] Refactor aten::flatten and aten::transpose conversion (#19098)
* [PT FE] Refactor aten::flatten and aten::transpose conversion

* Fix code style

* Fix codestyle
2023-08-10 10:28:36 +02:00
Maxim Vafin dafe437833 [PT FE] Fix issue with kwargs in signature (#19088)
* Fix issue with kwargs in signature

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

* Fix problem with some ops in detectron2

* Use debug name for extra input signature
2023-08-09 21:50:07 +02:00
Roman Kazantsev 4ee47fc002 [TF FE] Simplify ResizeBilinear and ResizeNearestNeighbor translators (#19099)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-08-09 18:58:33 +00:00
Roman Kazantsev 1939dd1df0 [TF FE] [TF Hub] Support MaxPoolWithArgmax operation (#19085)
* [TF FE] Support MaxPoolWithArgmax operation

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

* Add ticket number for TS crash

* Correct error message

* Skip crashing tests

* Set additional tensor name for MaxPool

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-08-09 20:18:27 +04:00
Ilya Churaev f86a0ad459 Removed legacy API from core_impl (#19009)
* Removed legacy API from core_impl

* Revert old extension in old API

* Fixed unit tests

* Wrap new extensions in old API

* Wrap extensions in all legacy API

* Fixed legacy exceptions

* Fixed ONNX tests

* Try to fix LTO
2023-08-09 07:26:25 +04:00
Roman Kazantsev 8d343ef0de [TF FE][TF Hub] Support UnravelIndex operation (#19060)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-08-08 21:00:04 +04:00
Vitaliy Urusovskij 4e777b69c8 Advanced mmap test for IR FE (#18711)
* Advanced `mmap` test for IR FE

* Move memory functions to `CommonTestUtils`

* CppLint + ClangFormat

* Refactor IR FE `mmap` tests

1) Remove `compile_model` stage as not required, so also remove
"CPU" dependency
2) Run test in separate process to make RAM values more stable
3) Update RAM reference as "binsize / 2"

* Skip test on Apple platform

* Remove `getRssFileInKB()` as unused
2023-08-08 17:56:54 +04:00
Roman Kazantsev 5a1dc93034 [TF FE][TF Hub] Support AdjustContrastv2 operation (#19029)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-08-08 13:49:52 +04:00
Ekaterina Aidova c92f8ee86c [PT FE]: support aten::masked_scatter (#19038) 2023-08-08 09:35:55 +00:00
Maxim Vafin 70c8cf2a5f [PT FE] Support dynamic rank for aten::t (#19030)
* Support dynamic rank for aten::t

* Fix code style
2023-08-08 00:06:30 +04:00
Roman Kazantsev 710a46cb47 [TF FE][TF Hub] Support InvertPermutation and CheckNumerics operations (#19020) 2023-08-07 23:05:23 +04:00
Roman Kazantsev b1db7223fd [TF FE][TF Hub] Support DivNoNan and EnsureShape operations (#19007)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-08-07 17:50:30 +04:00
Mateusz Mikolajczyk a22c5f16b6 [PT FE] Add aten::linspace (#18998)
* Add linspace

* Add linspace tests

* Cleanup

* Format schema
2023-08-07 12:07:51 +02:00
Ekaterina Aidova d2947e2385 [PT FE]: support aten::view_as and aten::std (#18960)
* [PT FE]: support aten::view_as and aten::std

* fix tests
2023-08-06 15:14:54 +04:00
Pawel RaaszandMaxim Vafin 2385c2769e [PT FE] Improved MaxPool convert by PyTorch FE (#18965)
* Improved MaxPool convert by PyTorch FE

* Mark xfail corner cases for AvgPool

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

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

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

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

* Fix build issues

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-08-04 15:07:33 +00:00
Oleg Pipikin 74c778e7ee Refactor engines utils. Delete the target (#18916)
* Refactor engines utils. Delete the target

* Apply comments
2023-08-04 13:25:47 +00:00
Maxim Vafin 4470546d2f Remove converts to target type before Range for aten::arange op (#18985) 2023-08-04 14:33:43 +02:00
Ekaterina Aidova 3c4beb1f16 [PT FE]: support aten::outer op (#18903) 2023-08-04 10:26:40 +02:00
Maxim Vafin da36633c08 [PT FE] Raise graceful exception when model has incorrect type (#18976)
* [PT FE] Raise graceful exception when model has incorrect type

* Improve message
2023-08-04 09:36:09 +02:00
Roman Kazantsev 625d50c8c8 [TF FE] Handle intermediate outputs in SavedModel (#18970) 2023-08-03 23:36:00 +04:00
Oleg Pipikin fb45deb65e Refactor engines utils (#18856)
* Refactor engines utils

* Apply comments

* Apply comments 2
2023-08-03 12:13:05 +04:00
Ilya Churaev aa4cbf36e5 Extend loading frontend error message (#18950) 2023-08-03 07:19:18 +00:00
Roman Kazantsev b44f915a9d [TF FE] Support ShapeN operation (#18913)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-08-02 15:28:39 +02:00