955 Commits

Author SHA1 Message Date
Georgy Krivoruchko
b0feb2f632 [ONNX] Refactoring tests on API 2.0 (#21840)
* Tests in onnx_import_rnn.in.cpp moved to API 2.0

* Tests in onnx_import_signal.in.cpp moved to API 2.0
2023-12-22 14:51:15 +01:00
Denis Orlov
bc121c06c7 Move ONNX test parameters from Azure folder to ONNX frontend test folder (#21827)
* Remove remaining files for Azure pipelines

* Move the files instead of removal

* Fix the folder ref in linux.yml

* Fix the folder ref in linux_arm64.yml
2023-12-22 03:37:57 +04:00
Georgy Krivoruchko
f980ad8f4c [ONNX] Refactoring tests on API 2.0 (#21784)
* Tests in onnx_import_quant.in.cpp moved to API 2.0
* Tests in onnx_import_reshape.in.cpp moved to API 2.0
* Update src/frontends/onnx/tests/onnx_import_reshape.in.cpp
* Update onnx_import_reshape.in.cpp
---------
Co-authored-by: Vitaliy Urusovskij <vitaliy.urusovskij@intel.com>
2023-12-21 15:20:04 +04:00
Anastasiia Pnevskaia
12faade22f [TF FE] Complex type support extended for Separate Bass model. (#21477)
* Complex type support extended, fixed some errors.
* Tests correction.
* FloorDiv, TensorListConcatV2 fixed.
* FloorDiv test added.
* Corrected imports.
2023-12-21 15:17:12 +04:00
rghvsh
1a0f0ccd2a [ONNX] Extend ONNX Frontend with BitwiseOr-18 operator (#21755)
* Create bitwise_or.hpp
* Update ops_bridge.cpp
* Added protobuf(.prototxt) files via upload.
* Update onnx_import.in.cpp
* Update test_backend.py
* Skip "test_bitwise_or_ui64_bcast_3v1d_cpu"
2023-12-21 12:27:28 +04:00
Georgy Krivoruchko
2779df5800 [ONNX] Refactoring tests on API 2.0 (#21748)
* Test in onnx_import_dyn_shapes.in.cpp moved to API 2.0

* Test in onnx_import_exception.cpp moved to API 2.0

* Tests in onnx_import_org_openvino.in.cpp moved to API 2.0

* Tests in onnx_import_org_pytorch.in.cpp moved to API 2.0

* Fixed code style
2023-12-19 22:49:44 +01:00
Georgy Krivoruchko
27c9ca749d [ONNX] Switched to ONNX 1.15.0 (#20929)
* [ONNX] Switched to ONNX 1.15.0

* Updated usage of ONNX serialization API

* Updated xfailed lists

* Updated xfailed lists

* Added xfailed ML-operators

* Added xfailed float8 cases

* Fixing mo tests

* Reverted legacy tests

* Sets default opset version in layer tests

* Skipped test which breaks moving on 1.15

* Updated xfailed list

* Fixed typo and added more tests to skipped

* Added xfailed tests

* Reduced opset due to need to work on onnx 1.13

* Removed unnecessary xfails

* Skipped misaligned tests

* WA for old compiler build
2023-12-19 18:55:32 +00:00
Anastasiia Pnevskaia
3c157b2a1b [TF FE] [Telemetry] Added error_info event to TF FE. (#21736)
* Added error_info event to TF FE.
2023-12-19 12:14:36 +04:00
rghvsh
a4e8f9d98c [ONNX] Extend ONNX Frontend with BitwiseAnd-18 operator (#21585) 2023-12-19 09:54:55 +04:00
Mateusz Mikolajczyk
a1e296eaa8 [TF FE][Opset13] Enable Multinomial operator in TF frontend (#20646)
* Enable Multinomial operator in TF frontend

* Implement requested changes

* Update tests/layer_tests/tensorflow_tests/test_tf_Multinomial.py

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

* Align with CPU implementation

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-12-18 12:00:04 +01:00
Mateusz Mikolajczyk
be476519fb [PT FE] ScaledDotProductAttention fix issue with other float dtypes (#21638)
* Fix scale input

* Improve torch scaled dot tests
2023-12-18 14:32:54 +04:00
Georgy Krivoruchko
62c9469f52 [ONNX] Reflected Shell-scripts to run on Windows (#18672)
* Reflected Shell-scripts to run on Windows

* Fixes

* Removed script from tests_compatibility
2023-12-18 13:51:20 +04:00
Mateusz Mikolajczyk
1783aad48d [PT FE][Opset13] Add translation for torchscript aten::multinomial operator (#20397)
* Enable aten::multinomial in PT FE

* Add aten::multinomial test

* Fix typo

* Update tests/layer_tests/pytorch_tests/test_multinomial.py

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

* Update multinomial to changes in specification

* rm ;

* Add temporary convert for multinomial i64 support

* Revert convert

* Fix torch test

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-12-18 09:54:06 +01:00
Georgy Krivoruchko
0972de4da8 [ONNX] Refactoring tests on API 2.0 (#21712)
* Moved test in onnx_import_com_microsoft to new API
* Updated onnx_import_constant_folding.in.cpp to new API
* Tests in onnx_import_controlflow.in.cpp moved to new API
* Tests in onnx_import_convpool.in.cpp moved to new API
* Test in onnx_import_deprecated.in.cpp moved to API 2.0
2023-12-18 11:31:32 +04:00
Georgy Krivoruchko
7b00e804de [ONNX] Refactoring tests on API 2.0 (#21707)
* Removed usage of API1.0 in onnx_reader_external_data.cpp

* Removed API1.0 usage in onnx_import.in.cpp

* Replaced old calls by convert_model in onnx_import.in.cpp

* Removed a deprecated API in onnx_import.in.cpp

* Fixed code style

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-12-17 13:44:38 +04:00
Georgy Krivoruchko
9e8c259ae2 [TFLite] Allows failing when model isn't generated (#21706)
* [TFLite] Allows failing when model isn't generated

* Use alternate way for downloading file
2023-12-16 12:46:13 +04:00
Andrey Kashchikhin
24b414c168 [CI] [GHA] Introduce ONNX Models Tests job in Linux workflow (#21581)
* add onnx models test job

* rm sudo

* add missing update

* add missing git-lfs

* add missing package

* correct var

* correct command

* try with pytest

* provide path to models

* use mounted path

* add msft models

* use symlinks

* correct name for model

* use -h

* create and use directory for models

* use share as source for models

* fix test names, use fresh onnx repo

* return names

* fix test names

* change folder structure for onnx model downloading

* skip tests; clean up logs; adapt azure counterpart

* make skip names lowercase

* increase parallel

* add missing git-lfs

* fix dir

* install git-lfs properly

* use sudo

* use 12 parallels; rm -f

* use skip

* rm unnecessary requirements

* rm pytorch from installing

* disable test
2023-12-16 12:37:37 +04:00
Ahmad Chalhoub
c087fb4206 support UniqueWithCounts for TF FE (#21565)
* support UniqueWithCounts for TF FE

* set node name and fix code style
2023-12-15 18:33:29 +04:00
Ilya Lavrenov
4b66fbfe21 Revert "[TFLite] Allows failing when model isn't generated (#21621)" (#21701)
This reverts commit 8c634ce4b0.
2023-12-15 18:15:52 +04:00
Georgy Krivoruchko
993d503a28 [ONNX] Refactoring tests on API 2.0 (#21685)
* Refactored tests in onnx_editor_topological_sort.cpp

* Moved importer tests to new API
2023-12-15 17:30:13 +04:00
Georgy Krivoruchko
6fdd0418ad Code in onnx_editor.cpp moved to using OpenVINO namespace (#21684) 2023-12-15 14:27:36 +04:00
Georgy Krivoruchko
b59584d179 Fixed message about binary data (#21686) 2023-12-15 14:06:04 +04:00
Georgy Krivoruchko
8c634ce4b0 [TFLite] Allows failing when model isn't generated (#21621) 2023-12-15 14:05:04 +04:00
Anastasiia Pnevskaia
bf00569ae1 Temporary revert "[TF FE] Support different types" (#21656)
This reverts commit f9d20d5aa0.
2023-12-15 13:27:18 +04:00
PuQing
a28fd2e009 【Hackathon 5th No.95】add paddle unique op (#20077)
* add unique

* fix args

* Refactor unique() function to handle dtype
correctly

---------

Co-authored-by: Xiuchuan Zhai <xiuchuan.zhai@intel.com>
2023-12-15 08:28:40 +08:00
Georgy Krivoruchko
88c8143dd8 [ONNX] Refactoring tests on API 2.0 (#21596)
* Applied common functions to tests in conversion.cpp

* Refactored convert_partially_tests

* Refactored convert_tests.cpp

* Removed usage of ngraph namespace in load_from.cpp

* Replaced definition in model_support_tests.cpp

* Fixed codestyle
2023-12-14 14:03:21 +01:00
Maxim Vafin
1d03b0813b [PT FE] Remove unique names from FE, rely on ResolveNameCollisions (#21636)
* [PT FE] Remove unicalisation from FE, rely on ResolveNameCollisions

* Fix build
2023-12-14 12:49:46 +01:00
Ekaterina Aidova
27bf494355 [PT FE]: support aten::take_along_dim (#21625) 2023-12-14 12:42:32 +01:00
Tomasz Jankowski
0649865372 [Core] Move validation util into dev API (#21501)
* Move infer_convolution_forward to dev API

* Move infer_auto_padding to dev API

* Move evaluate_as_partial_shape to dev API

* Move default_label_evaluator to dev API

* Move generate_transpose_default_order to dev API

* Move is_valid_axes_order to dev API

* Move has_no_labels to dev API

* Remove usage of legacy get_constant_from_source

from core and transformations

* Move normalize_axes to dev API

* Move normalize_axis to dev API

* Deprecate functions to be removed later
2023-12-14 10:10:46 +01:00
Maxim Vafin
4752237871 [PT FE] Support aten::pow_ (#21630)
* [PT FE] Support aten::pow_

* Fix tests
2023-12-13 18:54:53 +01:00
Maxim Vafin
be7c70c8c4 [PT FE] Support aten::scatter_add (#21633) 2023-12-13 17:54:33 +01:00
Ahmad Chalhoub
942bc8b1ba support pytorch efrc op (#21567)
* support pytorch efrc op

* allow dynamic case & fix code format

* fix code style, use space 4
2023-12-12 21:54:29 +01:00
Ekaterina Aidova
5b655d3c50 [PT FE]: fix aten::index_put type alignmnet (#21606) 2023-12-12 20:34:05 +00:00
Maxim Vafin
182b44f6cc [PT FE] Support dict on input (#21450)
* [PT FE] Support dict on input

* Check that keys are strings

* Revert changes in PtFrameworkNode
2023-12-12 18:58:04 +01:00
Asthestarsfalll
e51ba62831 【Hackathon 5th No.97】add paddle tanh_shrink op (#20067)
* Add paddle tanh_shrink conversion

* update

* update

* restore CMakeLists.txt and waitting for PD test build enabled

* update for unittests

* remove code

* Add paddle tanh_shrink conversion
2023-12-12 05:49:49 +01:00
Maxim Vafin
e1b9d8c167 [PT FE] Fix constant type in aten::square (#21580)
* Fix constant type in aten::square

* Add test

* Simplify test
2023-12-11 19:29:02 +00:00
Maxim Vafin
0f6b9abee8 Support aten::lstm, aten::gru and aten::rnn_{relu,tanh} operations (#21579)
* [PT FE] Initial LSTM impl

* Support aten::lstm operation

* Support aten::gru and aten::rnn_{relu,tanh}

* Apply suggestions from code review

* Fix build

* Simplify implementation

* More simplification

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

* Simplification

* Use default LSTM helpers

---------

Co-authored-by: Roboreptile <piotr.krzeminski@intel.com>
2023-12-11 19:06:51 +00:00
Ilya Lavrenov
02dec1c2d9 Added more exclude markers for install rules (#21561) 2023-12-11 17:05:09 +04:00
Georgy Krivoruchko
8960da9014 [ONNX] Preparing environment for moving ONNX tests to API2.0 (#21528)
* Added common functions for onnx tests
* Removed test cases which are non-related to ONNX
Extended convert_model by extension
* Extended test utils by convert_partially
* Added model convertion using istream as input
* Moved common functionality to a ov namespace
* Removed unused function
2023-12-09 11:06:15 +04:00
Georgy Krivoruchko
a3de4c17a1 [ONNX] QDQ uint16 support (#21278)
* [ONNX] QDQ uint16 verification
* Added tests
2023-12-08 17:04:40 +04:00
Andrey Kashchikhin
dfc91186a1 [CI] [GHA] Extract test jobs into reusable workflows (#21395)
* extract cpu func tests into a reusable workflow

* add needs

* check paths

* correct paths

* rm usage of setupvars

* extract samples

* use yaml string

* split mac workflow

* check variables

* try github workspace

* check full dir

* set variables

* try with sub directory

* Revert "try with sub directory"

This reverts commit d891ee3f28.

* extract c++ tests from linux

* change

* use cxx workflow in mac workflows

* add noninteractive

* extract cpu func tests

* rm unused

* enable mac

* fix reusable workflow name

* correct path for sparse-checkout

* extract python UT

* remove unnecessary asterisk

* remove another unnecessary asterisk

* use reusable action for linux cc

* add check for setupvars existence

* check with manually installed opencl

* add components input to samples workflow; rm pr triggers for mac workflows

* add missing needs

* add missing option for deps install  script

* use disables in test themselves instead of ifs in workflows

* use reusable workflow for cxx tests in linux arm

* use python reusable workflow in linux arm

* add missing endif

* use self-hosted for samples, add x86_64 constraint for jax

* check paths

* find gompby partial name

* skip failing tests on arm; correct gomp finding for ovc

* check tests

* add debian packages job; use job_ prefix for reusable workflows with jobs

* extract tf hub model tests

* extract tf model hub perf tests

* extract pytorch models tests

* do not use container on GHA runners

* extract onnx runtime

* add missing deps

* skip test for linux arm

* rm always()s

* fix quotes

* correct paths

* correct ifs, check dir for onnxruntime

* correct path for onnxruntime utils folder; install python3

* use self-hosted as input

* check for self-hosted runner via name, pass version

* skip cpu plugin unittest

* check cxx tests

* rm pr trigger
2023-12-07 23:44:45 +04:00
Ahmad Chalhoub
aa69f00e8d support MulNoNan for TF (#21459)
* support MulNoNan for TF

* update test_tf_MulNoNan

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

* update zeros const method

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

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

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

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

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

* Update tests/layer_tests/tensorflow_tests/test_tf_MulNoNan.py

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-12-07 16:31:41 +00:00
Maxim Vafin
056282b7ef [PT FE] Unroll lists in a same way as tuples when on input (#21505)
* [PT FE] Unroll lists in a same way as tuples when on input

* Fix codestyle
2023-12-07 16:09:43 +01:00
Pavel Esir
b71906c672 [PT FE] [ONNX FE] Partially upcast random_normal to f32 (#21400)
* upcast randn to fp32

* style fix

* corrected tests

* add layer tests with statistics

* style-fix

* move make_random_normal to cmmmon

* style-fix

* added randn layer tests; updated CMakeLists.txt

* moved to inline

* fix problem with _USE_MATH_DEFINES on Win

* pass NodeRegistry as reference; some other minor corrections

* adjust thresholds to avoid sporadicity

* move random_normal_helper and hide from public api

* fix install

* fix install: 2nd try

* Frontend common

* remove last frontend_common::static

* build fix

* try to fix mock1 build: 2nd attempt

* try to fix mock1 build: 3rd attempt

* Update src/core/tests/CMakeLists.txt

* Fixed build: attemp 2

* Update src/plugins/intel_cpu/tests/unit/CMakeLists.txt

* Update CMakeLists.txt

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-12-07 15:23:03 +04:00
Roman Kazantsev
33b2e6bb51 [TF FE] Allow any model format extension (#21508)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-12-07 09:21:38 +04:00
rghvsh
55d7765704 [TF FE] Support Atan2 operation for TensorFlow models (#21076)
* Create atan2.cpp

* Update common_op_table.hpp

Adds atan2 operation to the list

* Update op_table.cpp

Adds atan2 to the list of BinaryOp.

* Create test_tf_Atan2.py

Adds test for Atan2.

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

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

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

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

* Update atan2.cpp

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

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

* Update atan2.cpp

declares x and y , explicitly mentions conditions

* Update atan2.cpp

* Update atan2.cpp

Adds versions.

* Update atan2.cpp

adds namespace

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

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

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

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

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

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

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

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

* Update atan2.cpp

Clang format

* Update atan2.cpp

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

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

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

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

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

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

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

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

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

* Update test_tf_Atan2.py

fixes the datatype of y

* Update tests/layer_tests/tensorflow_tests/test_tf_Atan2.py

* Update test_tf_Atan2.py

shape to float

* Update tests/layer_tests/tensorflow_tests/test_tf_Atan2.py

* Update tests/layer_tests/tensorflow_tests/test_tf_Atan2.py

* Update tests/layer_tests/tensorflow_tests/test_tf_Atan2.py

* Update test_tf_Atan2.py

Makes the range of input inclusive for x<0 and y<0.

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

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-12-06 21:57:07 +01:00
Roman Kazantsev
148daf035b [TF FE] Avoid reinterpret_cast for non-standard types (#21506)
Clean-up translator for Placeholder

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-12-06 19:55:59 +00:00
Roman Kazantsev
cac6aadcc8 [TF FE] Support object removal and Pad for complex type (#21498)
* [TF FE] Support object removal and Pad for complex type

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

* Add test for Pad on complex type

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-12-06 20:03:43 +01:00
Sonder
6d3fbf4237 【Hackathon 5th No.113】Support paddle 2.5.1 (#20161)
* Fixed comments for linux-riscv64 GHA workflow

* Try to enable PDPD tests back

* support paddle 2.5

* fix op test errors

* fix op test errors

* recover openvino/src/core/src/op/swish.cpp

* recover thirdparty open_model_zoo

* update cmakelist

* disable some tests

* fix code style

* enable paddle ci tests

* disable some tests

* fix np.long error

* recover reverse op

* update ci config

* recover set_value test codes

* rm linux_debian.yml

* Compatible with cases where different paddle versions have different output shapes

* remove set_value tests

* recover save_model.py

* Added ctest labels for FE tests only if FW is found

* recover thirdparty

* Update CMakeLists.txt

Fixed creation of paddle_tests target two times

* update paddle v2.5.1 proto file

* recover thirdparty

* fix Paddle_Reader_Tests.LoadModelMemoryToCore error

* fix Paddle_Places test issue in v2.5.1

* support some tests for low version paddle

* fix paddle FrontEndCutModelTest issue

* fix

* support all other tests for low version paddle

* fix codestyle

* fix codestyle

* Update generate_multi_tensor_split.py

* fix build error

* add testUnloadLibBeforeDeletingDependentObject into paddle skip tests config

* remove PROTOBUF_LITE from paddle CmakeList.txt

* fix path error

* add debug info

* add debug codes

* use make_model_path

* recover

* add option optimize_for

* use FrontEndTestUtils in read_paddle_model_test.cpp

* use FrontEndTestUtils in read_paddle_model_test.cpp

* fix grid_sample error when using dynamic shape

* fix error tests for 2.4 version

* add paddle version judge for floor_div

* fix grid_sample and add tests

* fix

* fix

* recover

* recover grid_sampler

* Apply suggestions from code review

* fix

* Apply suggestions from code review

* Apply suggestions from code review

* fix build error

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
Co-authored-by: meiyang-intel <yang.mei@intel.com>
2023-12-06 13:59:50 +04:00
Andrey Kashchikhin
62f5bd6570 [CI] [GHA] Introduce the Linux ARM64 workflow (#20809)
* add arm as a matrix for build job

* uncomment

* comment

* try inside pipeline

* check location

* another dirs

* try to privide correct action path

* use corrected action

* use newer commit

* use newer commit

* use newer commit

* use newer action commit

* add setting

* rm from pipeline, adapt action iteslf

* add missing deps

* enable samples and debian jobs

* correct yml

* correct image name

* correct syntax, use self-hosted option

* enable onnx runtime and c++, use newer action

* enable Python and CPU Func tests

* add missing deps for arm64

* increase timeout for python tests

* disable some tests, add more time

* skip failing tests

* skip speech sample test on arm

* dummy chang

* skip mxnet mo on arm, run all tests

* rm quotes

* separate linux x86 and arm64 workflows

* rm unused matrix refs, add timeouts

* add skips for c++ tests and some Python tests

* correct cache keys, extend timeout

* skip more python tests

* add more skips: for python and CPU func

* extend cpu func list with skips

* disable cpu func tests and python api 2.0 tests

* rm disable job

* styling, rm pr trigger, rm always(), rm unnecessary changes

* revert

* use ifs instead of comments, provide better wording for skips
2023-12-05 12:14:02 +04:00