Xuejun Zhai
9b97235902
Xuejun/remove api in ov any ( #15667 )
...
* [Remove APIs] remove ov::any api &
Signed-off-by: xuejun <Xuejun.Zhai@intel.com >
* [Remove APIs] remove ov::any api
Signed-off-by: xuejun <Xuejun.Zhai@intel.com >
* [Remove APIs] remove interfaces in ov::any Base* operator->() & const Base* operator->()
Signed-off-by: xuejun <Xuejun.Zhai@intel.com >
* [Remove APIs] remove ov::any interfaces Base* get() & const Base* get()
Signed-off-by: xuejun <Xuejun.Zhai@intel.com >
* [Remove APIs] remove ov::any interfaces call(const Any& any) & dynamic_pointer_cast(const ::ov::Any& any) & static_pointer_cast(const ::ov::Any& any)
Signed-off-by: xuejun <Xuejun.Zhai@intel.com >
* [Remove APIs] fix code format issues in ov::any
Signed-off-by: xuejun <Xuejun.Zhai@intel.com >
* [Remove APIs] fix review issue
Signed-off-by: xuejun <xuejun.zhai@intel.com >
* [Remove APIs] clear code
Signed-off-by: xuejun <xuejun.zhai@intel.com >
* [Remove APIs] fix review issue
Signed-off-by: xuejun <xuejun.zhai@intel.com >
* [Remove APIs] fix compiler issue
Signed-off-by: xuejun <xuejun.zhai@intel.com >
* [Remove APIs] fix compiler issue
Signed-off-by: xuejun <xuejun.zhai@intel.com >
* [Remove APIs] fix compiler issue
Signed-off-by: xuejun <xuejun.zhai@intel.com >
* Fix variant error
Signed-off-by: xuejun <xuejun.zhai@intel.com >
---------
Signed-off-by: xuejun <Xuejun.Zhai@intel.com >
Signed-off-by: xuejun <xuejun.zhai@intel.com >
2023-03-06 10:24:08 +04:00
Piotr Krzemiński
0860db0dc3
[PT FE] Add aten::ArgSort & aten::Sort ( #15769 )
...
* [PT FE] Add aten::argsort implementation & tests
* [PT FE] Fix formatting
* [PT FE] Fix incorrect node type for Gather
* [PT FE] Fix Reshape missing argument
* [PT FE] Simplify syntax, fix int/int64 conversion error
* [PT FE] Fix argsort incorrectly sorting negative dimension, fix tests
* [PT FE] Revert modify test class
* [PT FE] Fix formatting of argsort
* [PT FE] Fix define macro style
* [PT FE] Add missing EOF
* [PT FE] Add stable==false check, add support for different constructor calls
* [PT FE] Add aten::sort implementation & tests
* [PT FE] Apply style changes, add XFail test for stable sorting
* Update sort.cpp
* Update sort.cpp
* [PT FE] Apply style changes from aten::sort t PR
* Update test_argsort.py
* [PT FE] Apply suggested modifications
* Update test_argsort.py
* [PT FE] Apply review suggestions, add tests and extract sort method to utils
* [PT FE] Use utils sort function to implement argsort
* [PT FE] Fix input size check 4->5
* [PT FE] Implement improved tests
* [PT FE] Implement improved tests
* [PT FE] Add xfail to not yet supported tests
* [PT FE] Merge 2 implementations of sort and argsort into a single file
* [PT FE] Remove redundant sort_elements from utils
* [PT FE] Add num_inputs_check
---------
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com >
2023-03-05 20:12:32 +01:00
Ekaterina Aidova
a1cde2e790
[PT FE]: fix padding vaqlue dtype ( #16087 )
2023-03-04 11:08:56 +00:00
Ekaterina Aidova
0edbc5ca60
[PT FE]: fix arange dtype if it is not provided ( #16084 )
2023-03-04 10:17:09 +01:00
Anastasiia Pnevskaia
9efdb38b96
convert_model() legacy extensions fix ( #15742 )
...
* Fixed legacy extensions passing to MO tool.
* Added tests.
* Corrected test.
* Add debug print.
* Moved tests to layer tests.
* Added comment.
* Moved legacy ext tests to separate file. Fixed tmp .pb file cleaning.
* Small correction.
* Run MO Python API tests directory in CI.
* Small fix.
* Fix for case of splitted output.
* Corrected imports.
* Corrected imports.
* Added run of legacy extensions tests from subprocess.
2023-03-03 09:59:30 +04:00
Anastasiia Pnevskaia
6185114bc4
Clearing of CustomReplacementRegistry.registry in convert_model() ( #15893 )
...
* Clearing of CustomReplacementRegistry.registry.
* Added test.
2023-03-02 14:49:45 +04:00
Mateusz Mikolajczyk
112c763256
[PT FE] Add prim::device and prim::type, improvements to aten::to, aten::eq, aten::ne ( #15881 )
...
* Add device, improve to and equal
* Rename and remove unused import
* Apply fixes from code review
* Fix decoder.py
* Load prim::device using prim::Constant
* Remove throwing exceptions
* Apply suggestions from code review
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com >
---------
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com >
2023-03-01 09:46:55 +01:00
Maxim Vafin
87e714eb5c
Add support for concatenation in Loop ( #15899 )
...
* Add support for concatenation in Loop
* Apply suggestions from code review
* Fix win build
* Fix issues with propagation shapes and types in Loop
* Fix einsum
* Set type and shape of count in frontend
2023-02-28 21:31:33 +01:00
Roman Kazantsev
68b7b8e69b
[TF FE] Mark-up xfailed layer tests on GPU in nightly ( #15981 )
...
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
2023-02-27 21:14:21 +00:00
Roman Kazantsev
5317b909f7
[TF FE] Test Nested While in the pre-commit ( #15955 )
...
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
2023-02-26 11:28:51 +00:00
Ekaterina Aidova
5c6ef54127
[PT FE]: support aten::index ( #15544 )
...
* [PT FE]: support aten::index
* bool indexing testing
* more tests, fix nonzero case
* apply code review
2023-02-24 14:33:00 +01:00
Roman Kazantsev
ad4bd6f752
[TF FE] Simplify FakrQuantWithMinMaxVars translator and add layer test ( #15927 )
...
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
2023-02-24 12:13:46 +00:00
Ruslan Nugmanov
091ba1f5ee
Adds layer tests for binary and reduce tflite operations ( #15791 )
...
* adds binary and reduce layer tests
* adds binary with activations layer tests for tfl ops
* 1.moves helper functions and lists to utils file
2.adds axis as test parameter for reduce test
3.adds reluNto1 activation
* skips tanh and signbit activations
* Update tests/layer_tests/common/utils/tflite_utils.py
* Fused activations supported: RELU_N1_TO_1, SIGN_BIT
---------
Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com >
2023-02-24 14:46:29 +04:00
Roman Kazantsev
8a56234445
[TF FE] Refactor identity operations and layer test ( #15904 )
...
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
2023-02-23 21:22:31 +01:00
Anastasiia Pnevskaia
1e24c51abb
Turn on onnx fallthrough in convert_model() ( #15651 )
...
* Turn on ONNX_FALLTHROUGH in torch.onnx.export().
* Removed wrong change.
* Added test.
2023-02-23 13:22:30 +04:00
Leonard Sikorski
bc663878eb
[PT FE] Add torchvision::roi_align operator with layer test ( #15821 )
2023-02-23 09:26:17 +01:00
Ekaterina Aidova
288a750bc6
[PT FE]: support aten::einsum ( #15844 )
2023-02-23 11:39:28 +04:00
Maxim Vafin
a9efe5bd8d
[PT FE] Extend upsample support ( #15826 )
...
* [PT FE] Extend upsample suport
* Update tests/layer_tests/pytorch_tests/test_upsample.py
Co-authored-by: Ekaterina Aidova <ekaterina.aidova@intel.com >
---------
Co-authored-by: Ekaterina Aidova <ekaterina.aidova@intel.com >
2023-02-23 11:34:29 +04:00
Pavel Esir
15973fd2da
enable --compress_to_fp16=True by default in MO ( #15488 )
...
* enable --compress_to_fp16 by default in MO
* corrected docs, added warning if user did't specify --compress_to_fp16 explicitly
* fix failing MO unit-tests
* do not wipe out data_type if user defined it explicitly by cli argument
* updated warning message and docs
* corrected phrasing
* corrected phrasing in FP16_Compression.md
* set compress_to_fp16=False for convert tests
* leftover: set compress_to_fp16=False for convert tests
* minor correction
* print info message in main.py, som minor changes
* typos fix
* fix losing information whether arguments set by user or got from defaults
* returned back default values instead of None
* more selective correcting of test_mo_convert_pytorch.py; added test for cases when compression is enabled/disabled or left by default
* fix test_mo_convert_pytorch.py
2023-02-21 13:07:43 +01:00
Maxim Vafin
ce3ac296ae
[PT FE] Fix aten::len for empty lists ( #15820 )
...
* [PT FE] Fix aten::len for empty lists
* Fix code style
2023-02-20 21:34:04 +00:00
Leonard Sikorski
5d3cd81fd1
Add aten::narrow operator with layer test ( #15788 )
2023-02-20 15:47:25 +01:00
Roman Kazantsev
bc8d0ec71e
[TF FE] Refactor ReverseSequence and add layer test ( #15807 )
...
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
2023-02-20 12:26:19 +00:00
Roman Kazantsev
b75a3b3465
[TF FE] Implement layer test for GatherNd translator ( #15813 )
...
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
2023-02-20 12:58:52 +01:00
Roman Kazantsev
699a1d1708
[TF FE] Refactor Gather operations and add layer tests ( #15808 )
...
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
2023-02-20 11:02:42 +04:00
Roman Kazantsev
7d13bc6861
[TF FE] Remove NormalizeL2 translator and refactor layer test ( #15760 )
...
It turned out that NormalizeL2 is absent in tf.raw_ops api
and always presented in the decomposed form.
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
2023-02-17 14:37:42 +04:00
Roman Kazantsev
bd0dfbcd7a
[TF FE] Refactor OneHot translator and add layer test ( #15763 )
...
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
2023-02-17 13:54:40 +04:00
Ekaterina Aidova
225f9b3801
[PT FE]: fix aten::embedding realization for integer-like indicies an… ( #15721 )
...
* [PT FE]: fix aten::embedding realization for integer-like indicies and add tests
* more comments
* Update src/frontends/pytorch/src/op/embedding.cpp
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com >
---------
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com >
2023-02-17 08:09:46 +00:00
Leonard Sikorski
fab35896cb
[PT FE ] Add aten::index_put_ operator with layer test ( #15668 )
2023-02-16 08:28:46 +01:00
Roman Kazantsev
cabe75da1c
[TF FE] Refactor LogSoftmax translator and layer test ( #15724 )
...
* [TF FE] Refactor LogSoftmax translator and layer test
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
* Work around for the legacy frontend
* Update src/frontends/tensorflow_common/src/op/log_softmax.cpp
---------
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
2023-02-15 20:36:46 +00:00
Ekaterina Aidova
f8aae85183
[PT FE]: add more list construct transformations ( #15614 )
2023-02-15 16:39:27 +00:00
Roman Kazantsev
c6f7d7c98a
[TF FE] Refactor IdentityN translator and add layer test ( #15727 )
...
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
2023-02-15 15:18:18 +01:00
Ekaterina Aidova
13eca30081
[PT FE]: support aten::gelu with tanh approximate and tests ( #15715 )
2023-02-15 15:11:37 +01:00
Roman Kazantsev
cb5c92f829
[TF FE] Refactor Squeeze and layer test ( #15723 )
...
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
2023-02-15 12:34:44 +01:00
Ekaterina Aidova
ba6b2609af
[PT FE]: update masked_fill support for multiple precisions ( #15722 )
2023-02-15 15:32:06 +04:00
Roman Kazantsev
ad20add992
[TF FE] Refactor Concat layer test and extend pre-commit ( #15726 )
...
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
2023-02-15 12:25:05 +01:00
Ekaterina Aidova
55d667ce32
[PT FE] aten::to extend op support for device tracing case ( #15712 )
2023-02-15 09:04:09 +01:00
Ekaterina Aidova
38943434b6
[MO][PT FE] POC Integrate PT FE into MO convert_model ( #15197 )
...
* [WIP]: poc: integrate pt fe to mo.convert_model
* temporaly resolve names using signature inspection
* fix logic
* move to moc frontend
* add rank and data type setting
* add input signature
* apply comments
* move after convert processing
* support work without example_input, provide parameters description
* ignore extensions on fe side
* upd tests
* more tests
* add notes about extensions support and removing onnx path
* remove debug prints
* refactoring
* update BOM
2023-02-15 08:19:15 +01:00
Ekaterina Aidova
5ead83f315
[PT FE]: fix sporaidic failure in pytorch layer tests ( #15713 )
2023-02-14 21:35:35 +04:00
Maxim Vafin
5cc1c2c5e5
Add support for aten::_set_item ( #15643 )
...
* Add support for aten::_set_item
* Update loop.cpp
* Update tests/layer_tests/pytorch_tests/test_set_item.py
Co-authored-by: Ekaterina Aidova <ekaterina.aidova@intel.com >
* Update test_set_item.py
* Apply code review comments
* Fix code style
* Update tests/layer_tests/pytorch_tests/test_set_item.py
---------
Co-authored-by: Ekaterina Aidova <ekaterina.aidova@intel.com >
2023-02-14 14:11:51 +01:00
Evgeny Talanin
fac03ee5f7
Correct random number generation ( #15644 )
2023-02-14 11:16:49 +01:00
Ekaterina Aidova
609dee0abc
[PT FE]: support aten:Bool, add tests for aten::add_ ( #15590 )
2023-02-13 23:29:43 +01:00
Roman Kazantsev
65b69fe8ca
[TF FE] Fix FusedBatchNormV3 in case of mean and variance empty tensors ( #15675 )
...
* [TF FE] Fix FusedBatchNormV3 in case of mean and variance empty tensors
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
* Add to nightly
---------
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
2023-02-13 15:23:48 +01:00
Roman Kazantsev
4352b9f179
[TF FE] Refactor Reciprocal translator and add layer test ( #15652 )
...
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
2023-02-13 11:10:16 +04:00
Roman Kazantsev
a91f173166
[TF FE] Refactor Size translator and add layer test ( #15653 )
...
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
2023-02-13 11:09:12 +04:00
Roman Kazantsev
a1a6ba911a
[TF FE] Refactor Split and SplitV translators and add layer tests ( #15662 )
...
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
2023-02-13 10:49:34 +04:00
Roman Kazantsev
b300df1be6
[TF FE] Refactor ZerosLike and add layer test ( #15648 )
...
* [TF FE] Refactor ZerosLike and add layer test
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
* Fix test for Wide and Deep model
---------
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
2023-02-11 20:50:01 +00:00
Roman Kazantsev
985c769ac7
[TF FE] Refactor Log1p translator and add layer test ( #15649 )
...
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
2023-02-11 07:28:21 +01:00
Roman Kazantsev
6a587a71cc
[TF FE] Refactor Transpose and add layer test ( #15586 )
...
* [TF FE] Refactor Transpose and add layer test
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
* Update tests/layer_tests/tensorflow_tests/test_tf_Transpose.py
---------
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com >
2023-02-10 19:31:26 +00:00
Maxim Vafin
00f8d2b992
Add support for concating lists in aten::add ( #15587 )
2023-02-10 16:41:27 +00:00
Maxim Vafin
d992c6b9c7
[PT FE] Fix aten::flatten, add more tests ( #15576 )
...
* Fix flatten, add more tests
* Apply review feedback
* Fix code style
2023-02-10 14:23:27 +01:00