Commit Graph

1091 Commits

Author SHA1 Message Date
Roman Kazantsev 0e8eb19712
[TF FE] Support mutable tensors produced by variables and resources (#22270)
* [TF FE] Support mutable tensors produced by variables and resources

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

* Update documentation

* Fix build and move variable.hpp to public

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

* Add missing variable.hpp header file

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

* Add layer tests for Assign operations

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

* Add translators for AssignVariable operations

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

* Document new operations

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

* Add layer tests for AssignVariableOps

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

* Fix build

* Fix code-style issue

* Update src/frontends/tensorflow/include/openvino/frontend/tensorflow/node_context.hpp

* Update src/frontends/tensorflow/include/openvino/frontend/tensorflow/variable.hpp

* Update src/frontends/tensorflow/include/openvino/frontend/tensorflow/variable.hpp

* Update src/frontends/tensorflow/src/op/assign.cpp

* Update src/frontends/tensorflow/src/op/assign_add.cpp

* Update src/frontends/tensorflow/src/op/assign_sub.cpp

* Do not change node name for read_variable_op

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

* Make assign_variable_op backward-compatible

* Fix layer tests to run them in parallel

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

* Fix testing model

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-24 18:57:06 +01:00
abhinav231-valisetti 51cbbab2f4
Fixed IndexError list index out of range for Squeeze (#22326)
* fixed list index out of range error in node_decoder.py

* Improved and Modified as per review feedback

- Added a Model in the precommit_models for precommit validation.
- Removed skip and xfail marrks for the issue (129232 IndexError list
  index out of range for Squeeze)
- Added explicilty return None in node_decoder.py

* Update tests/model_hub_tests/tf_hub_tests/nightly_models

* Update tests/model_hub_tests/tf_hub_tests/nightly_models

* Update tests/model_hub_tests/tf_hub_tests/nightly_models

* Apply suggestions from code review

* Update tests/model_hub_tests/tf_hub_tests/precommit_models

* Update tests/model_hub_tests/tf_hub_tests/precommit_models

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-01-24 05:36:19 +00:00
Maxim Vafin 92a1f959d6
[PT FE] Save state_dict names in Constant name (#22242)
* Save state_dict names in Constant name

* Fix issue with cert

* Fix cert issue again
2024-01-22 10:40:00 +01:00
Karan Jakhar 103fb811e9
[PT FE] Add aten::gcd (#21740)
* Add gcd and test

* constant with static

* exec_condition set to true

* boolean scalar, output condition, zero shape []

* removing unused headers

* more tests added

* code format

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

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

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

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

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

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

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

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

* ngraph header removed

* int64

* Add int64 support

* Update tests/layer_tests/pytorch_tests/test_gcd.py

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

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2024-01-18 19:55:25 +01:00
Rajat Krishna 1a8f72f342
Parallel execution of TensorFlow Layer 1 Python tests (#22173)
* Update TF Layer 1 tests

* Enable parallel execution of tests

* Fix typo

* Fix typo

* Enable parallel tensorflow tests for windows

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-01-18 18:46:20 +04:00
Pavel Esir 28b6fc9394
uncomment persimmon-8b-base, tvp-base, pvt-tiny-224 (#22212) 2024-01-17 16:52:19 +01:00
Maxim Vafin 6f5329250b
[PT FE] Fix mask case of aten::index_put_ (#22190) 2024-01-17 15:07:34 +01:00
Roman Kazantsev 14183ae7d1
[TF Hub] Mark up models failing due to unsupported operations (#22207)
* [TF Hub] Mark up models failing due to unsupported operations

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

* Update tests/model_hub_tests/tf_hub_tests/nightly_models

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-17 11:19:22 +01:00
Maxim Vafin d699522843
[GHA] Update torchbench tests due to remove of phi_1_5 (#22191) 2024-01-16 23:50:10 +01:00
dependabot[bot] 997dda5475
Bump attrs from 23.1.0 to 23.2.0 in /tests (#22093)
Bumps [attrs](https://github.com/sponsors/hynek) from 23.1.0 to 23.2.0.
- [Commits](https://github.com/sponsors/hynek/commits)

---
updated-dependencies:
- dependency-name: attrs
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-16 22:20:27 +01:00
Roman Kazantsev 464c35181a
[TF FE] Add testing model with tokenizer to precommit (#22141)
* [TF FE] Add testing model with tokenizer to precommit

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

* Fix typo

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-16 10:36:29 +04:00
Ekaterina Aidova cc597ee4fd
[PT FE]: support aten::index_add (#22138)
* [PT FE]: support aten::index_add

* apply review comments, extend tests

* use inplace op

* Update src/frontends/pytorch/src/op_table.cpp
2024-01-16 07:14:06 +01:00
Anastasiia Pnevskaia 41195a4b2a
[TF FE] Set single output tensor name for TF1 formats. (#21075)
* Set single output tensor name for TF1 and TF2 formats.

* Removed debug output.

* Added param for defining if tensor names need indices.

* Clang format.

* Comment corrected.

* Fixed TF1 layer tests.

* Minor correction.

* Fixed errors.

* Error fixed.

* Bug fixes.

* Bug fix.

* Code style, minor corrections.

* Added comments.

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

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

* Added tests.

* Optimize imports.

* Code correction.

* Removed WA

* Small correction.

* Moved names alignment logic to adjust_saved_model_names().

* Removed changes in utils.

* Fixed errors, applied comments.

* Test fixed.

* Removed changes from utils.

* Removed commented code.

* Added note.

* Minor corrections.

* Code style.

* Changed set_node_name, removed not needed changes.

* Clang format.

* Fixed names for output places in input model.

* Fixed tensor names of identity.

* Added ticket number.

* Added ticket numbers.

* Added ticket numbers.

* Code style.

* Corrected tests.

* Update tests/layer_tests/ovc_python_api_tests/test_tf.py

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

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-01-15 21:53:43 +04:00
Pavel Esir b5b53e1749
Keep compressed constants produced by FW (#22095)
* keep FW 16 bit float constants

* add layer tests

* remove leftovers from onnx, pdpd

* rename to MarkCompressedFloatConstants

* remove VisualizeTree

* added explanation why we need MarkCompressedFloatConstants
2024-01-15 15:05:24 +04:00
Pavel Esir 938600fbf7
[tests] resolve HF models 4th batch (#21907)
* add inspect pytorch modules

* add infer for each submodule

* skip -> xfail in several models

* successfull separate modules execution

* revert jukebox, whisper

* ready for rewiew

* rely on tags insted of names

* fix import error
2024-01-15 12:57:24 +04:00
Roman Kazantsev 994438b898
[TF Hub] Move Notebooks tests to Kaggle links (#22108)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-12 10:32:56 +04:00
Roman Kazantsev 2a4ae7c5c0
[TF Hub] Mark up models failing with IndexError for Squeeze (#22070)
* [TF Hub] Mark up models failing with IndexError for Squeeze

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

* Add xfail for nightly

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-10 18:46:43 +01:00
Georgy Krivoruchko 3722df74e8
[Py] Removing an old API from tests (#22047)
* Removed usage of old api
* Removed use_old_api
* Removed use_old_api in common files
* Removed use_old_api from tests
* MO/OVC related changes
* Renamed InferAPI20
* Removed use_old_api from tf_Placeholder test
* Removed transpose step
* Removed forced use_old_api=False for TF Lite
2024-01-10 19:25:29 +04:00
Roman Kazantsev b0bc95f3e0
[TF FE] Implement native support of string tensors for TensorFlow models (#22024)
* [TF FE] Implement native support of string tensors for TensorFlow models

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

* Update unit-test for model with string tensor

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

* Update graph comparator for string Constant comparison

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

* Update unit-test

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

* Add layer tests for string tensor

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-09 20:54:55 +01:00
Roman Kazantsev ce4bbd75b4
[TF Hub] Mark up models failing with timeout error (#22050)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-09 20:28:55 +01:00
Roman Kazantsev 3052310d3b
[TF Hub] Mark up models failing with InvalidArgumentError and AttributeError (#22010)
* [TF Hub] Mark tests failing with InvalidArgumentError

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

* [TF Hub] Mark test models failing with AttributeError

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-08 13:29:28 +01:00
sami0i e2c9f24400
[TF FE] Support Div operation for TensorFlow (#21730)
* Support Div operation for TensorFlow

* Update test_tf_Div.py

* Update div.cpp

* Update op_table and common_op_table

* update translate_div_op

* print inputs

* update div.cpp

* set m_pythondiv to false

* update div.cpp

* update div.cpp

* Update tests/layer_tests/tensorflow_tests/test_tf_Div.py

* Update tests/layer_tests/tensorflow_tests/test_tf_Div.py

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-01-07 15:04:12 +00:00
Roman Kazantsev dbcb270201
[MO][TF FE] Switch off fallback to legacy FE (#21523)
* [MO][TF FE] Switch off fallback to legacy FE

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

* Support complex condition for TF While

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

* Support TensorArrayV3 of a dynamic size

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

* Test TensorArrayV3 of dynamic size

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-05 19:11:04 +01:00
Vitaliy Urusovskij d7ba44f8c3
Replace legacy config in stress_tests/ with Properties (#21988) 2024-01-05 17:27:17 +04:00
Roman Kazantsev 51eb10743a
[TF Hub] Markup models failing with error "Model references undeclared parameters" (#21975)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-05 08:33:01 +00:00
Roman Kazantsev 7953dfafa1
[TF Hub] Markup models failing due to inference results mismatch (#21936)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-03 15:27:12 +01:00
Aleksandr Voron e99af17296
[CPU][ARM] Set `arm64-v8.2-a` as a default architecture (#21545) 2024-01-03 16:39:13 +04:00
Roman Kazantsev bac895b33d
[TF Hub] Mark up tests failing with error "No signature found" (#21920)
* [TF Hub] Mark up tests failing with error "No signature found"

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

* Update tests/model_hub_tests/tf_hub_tests/nightly_models

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-02 16:30:16 +01:00
Abdulrahman Adel Ibrahim ded49387b0
Support ConjugateTranspose for TF (#21586)
* conj transpose

* Update

* Fix Mistakes

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

Co-authored-by: Anastasiia Pnevskaia <anastasiia.pnevskaia@intel.com>

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

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

* """Test the conjugate transpose layer."""

* u

* Resolve Issues

* Revert "conj transpose"

This reverts commit 27833f348a.

* Update ConjTranspose

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

* update  clang-format | fix test errors

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

* fix test error

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

---------

Co-authored-by: Anastasiia Pnevskaia <anastasiia.pnevskaia@intel.com>
Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-12-30 20:29:48 +00:00
Maxim Vafin 98c309f96b
[PT FE] Filter timm models prio smaller, adjust models failed in nightly (#21912)
* [PT FE] Filter timm models prio smaller, adjust models failed in nightly

* Remove debug output

* Update tests/model_hub_tests/torch_tests/test_timm.py
2023-12-29 21:12:24 +01:00
Roman Kazantsev fe9c56f688
[TF Hub] Support pb models for testing (#21883)
* [TF Hub] Support pb models for testing

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

* Fix model hub tests

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-12-27 20:37:10 +04:00
Denis Orlov ffcc2962d5
Remove more GNA related code (#21826)
* Remove more GNA related code

* Remove DEVICE_GNA from tests

* Fix according to review comments

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-12-27 16:09:22 +00:00
Roman Kazantsev 26c01d683d
[TF Hub] Update precommit with model containing TensorListConcatV2 op (#21859)
* [TF Hub] Update precommit with model containing TensorListConcatV2 op

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

* Update tests/model_hub_tests/tf_hub_tests/precommit_models

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-12-27 12:06:22 +01:00
Roman Kazantsev 0c87a19333
[TF FE][GitHub issue] Extend Upsampling2D support for more input types (#21870)
* [TF FE][GitHub issue] Extend Upsampling2D support for more input types

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

* Fix output type

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-12-26 12:59:38 +01:00
Vitaliy Urusovskij 1545418a26
Delete API1.0 migrated tests (#21251)
* Clean up `tests/fuzz` from API1.0

* Clean up `tests/memory_tests` from API1.0

* Clean up `tests/stress_tests` from API1.0

* Clean up `tests/time_tests` from API1.0

* Clean up `tests/lib` from API1.0

* Clean up `tests/` from `inference_engine.hpp` include
2023-12-26 08:35:17 +04:00
Roman Kazantsev 9a5ec1a153
[TF FE] Support different types: tf.i8, u8, i16, u16, i32, u32, i64, u64, f16, f32, bf16 (#21864)
* Revert "Temporary revert "[TF FE] Support different types" (#21656)"

This reverts commit bf00569ae1.

* Correct unpacking compressed fp16 constant and exclude handling compressed bf16 constant

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

* Update layer tests to cover more smart range values

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-12-25 19:03:11 +01:00
Anastasiia Pnevskaia 3ab5ee861d
Fixed names for GraphDef. (#21799) 2023-12-21 17:04:05 +04:00
Ilya Lavrenov c79ae17bbf
Removed GNA plugin from 2024.0 (#21800) 2023-12-21 13:39:06 +01: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
Ilya Lavrenov 2463acc5b0
Removed speech_sample (#21801) 2023-12-21 13:06:57 +04: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
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
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
Pavel Esir 137180bce5
[tests] resolves skipped HF tests: 3rd batch (#21678)
* resolves skipped HF tests: 3rd batch

* remove comments

* minor corrections

* replace example input *argc -> **kwargc

* use config instead of dict in example input

* add kwargs
2023-12-15 19:58:12 +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
Anastasiia Pnevskaia bf00569ae1
Temporary revert "[TF FE] Support different types" (#21656)
This reverts commit f9d20d5aa0.
2023-12-15 13:27:18 +04:00
Ekaterina Aidova 27bf494355
[PT FE]: support aten::take_along_dim (#21625) 2023-12-14 12:42:32 +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
Pavel Esir 20ad8b43a1
Enable dinov2-base (#21626)
with the newest transformers dinov-2-base started to pass
2023-12-13 13:52:52 +00:00
Maxim Vafin 34b2b66b69
[PT FE] Report unsupported operations with model list (#21607)
* [PT FE] Report unsupported operations with model list

* Continue on error

* Disable more models

* Check if file exists

* continue of error

* Fix on failure

* Fix file path

* Apply suggestions from code review
2023-12-12 21:25:27 +00: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
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
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
Pavel Esir 948fc265b4
[tests] resolve skipped HF models: 2nd batch (#21526)
* resolve skipped HF models: 2nd batch

* commented out models with no info and less than 10 downloads

* Revert "commented out models with no info and less than 10 downloads"

This reverts commit a55861ed69.

* replace with self.image

* resolve todo

* Update tests/model_hub_tests/torch_tests/test_hf_transformers.py

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

* Update tests/model_hub_tests/torch_tests/test_hf_transformers.py

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-12-11 15:12:12 +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
Maxim Vafin dd8f4f3661
Fix ClampFusion for case when min is greater then max (#21509) 2023-12-07 17:58:38 +04:00
Roman Kazantsev ec40652cea
[TF FE] Switch on ConvLSTM2D layer tests in pre-commit (#21520)
* [TF FE] Switch on ConvLSTM2D layer tests in pre-commit

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

* Remove extra blank line

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-12-07 13:46:58 +00: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
Evgeny Kotov 90087dbb48
Use time limits instead of number iterations limits in GHA performance tests (#21407)
* use perf_counter_ns to measure performance; meausure within time not count

* fixes

* remove nightly

* set 60 secs by default

* fix output html

* code review fixes

* fix runtime duration

* remove unneeded inference

* cleanup
2023-12-07 11:53:27 +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 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
Vitaliy Urusovskij e4c38e3afd
Port `tests/` to API2.0 (#21476)
* Port properties in time and stress tests to API2.0

* Port CC tests infer_tool.py to API2.0

* Update tests/conditional_compilation/tools/infer_tool.py

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-12-06 14:36:43 +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
Roman Kazantsev f9d20d5aa0
[TF FE] Support different types: tf.i8, u8, i16, u16, i32, u32, i64, u64, f16, f32, bf16 (#21439)
* [TF FE] Support different types: u16, u64, u32, boolean

Support constants of different types and dtype attribute values

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

* Use map instead of unordered_map

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

* Add tests with different types

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-12-05 11:08:46 +04:00
Przemyslaw Wysocki 8427493446
[PyOV] Limit protobuf version for conditional compilation tests (#21130)
* Initial commit

* Add protobuf version bound

* Revert "Initial commit"

This reverts commit 5fd6b521df.

* Cleanup of accidental commits

* Cleanup of accidental commits

---------

Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>
Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-12-01 16:13:12 +00:00
Ekaterina Aidova bf760b663e
PT FE - aten::alias, aten::alias_copy, aten::cross, aten::linalg_cross (#21265)
* [PT FE]: support aten::alias, aten::alias_copy, aten::cross, aten::linalg_cross

* add type alignment

* fix code style
2023-12-01 14:59:03 +01:00
Ekaterina Aidova d1f72e2d01
add gptq model test in pytorch hub tests (#21399)
* conflict

* refactor test

* fix for case if can not instantiate config
2023-12-01 10:56:05 +00:00
Maxim Vafin db6aeb7a65
[PT FE] Add torchbenchmark models to GHA tests (#21401)
* [PT FE] Add torchbenchmark models to GHA tests

* Fix teardown

* Fix requirements

* Update tests/model_hub_tests/torch_tests/torchbench_models

* Update tests/model_hub_tests/torch_tests/torchbench_models

* Update tests/model_hub_tests/torch_tests/test_torchbench.py
2023-12-01 09:44:12 +01:00
Roman Kazantsev c1cfb00f81
[TF Hub] Fix typo in test file name (#21408)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-11-30 23:49:01 +00:00
Maxim Vafin fa7a4f44b5
[PT FE] Update torch to 2.1 in GHA tests (#21391)
* [PT FE] Update torch to 2.1 in GHA tests

* Adjust requirements for natten

* Add upper bound

* Use sys.executable
2023-11-30 17:48:40 +00:00
Pavel Esir d5d9fd11b3
[tests] resolve skipped HF tests: 1st batch (#21305)
* initial

* some corrections for the first batch

* corrected classes for generate, corrected xfail

* leave only models with correct example input

* remove an obsolete line

* Update tests/model_hub_tests/torch_tests/test_hf_transformers.py

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

* update musicgen

* cleanup test_hf_transformers.py

* typo fix

* Update tests/model_hub_tests/torch_tests/test_hf_transformers.py

* Update tests/model_hub_tests/torch_tests/test_hf_transformers.py

* move to up: corrected xfail

* revert back accidentally deleted elif

* Update tests/model_hub_tests/torch_tests/test_hf_transformers.py

* Update tests/model_hub_tests/torch_tests/test_hf_transformers.py

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-11-30 14:37:41 +00:00
Maxim Vafin 3cae6e7aea
[PT FE] Fix timm model list according to newest version (#21376)
* [PT FE] Fix timm model list according to newest version

* Remove xfail for hf model passed in latest nightly

* Fix code for loading vit_h model

* Restore torchvision
2023-11-30 08:17:21 +04:00
Maxim Vafin 007b6fd82c
[PT FE] Add support for GFPGAN model (#21371)
* [PT FE] Add support for GFPGAN model

* Remove logs

* Fix codestyle

* Add support for aten::normal
2023-11-29 23:05:46 +00:00
Roman Kazantsev cb5377fb1d
[TF FE] Correct ArgMinMax translators and add tests (#21364)
* [TF FE] Correct ArgMinMax translators and add tests

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

* Update tests/layer_tests/tensorflow_tests/test_tf_ArgMinMax.py

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-11-30 00:00:43 +04:00
Maxim Vafin b3a13af9ef
[PT FE] Support aten::softplus (#21367)
* [PT FE] Support aten::softplus

* Fix name
2023-11-29 14:38:31 +00:00
Ekaterina Aidova 2b14ea97fc
[PT FE]: support aten:resolve_neg, aten::resolve_conj (#21362)
* [PT FE]: support aten:resolve_neg, aten::resolve_conj

* Update src/frontends/pytorch/src/op_table.cpp
2023-11-29 10:34:46 +00:00
Maxim Vafin 258c72555c
[PT FE] Support bool in aten::prod (#21351) 2023-11-29 11:07:21 +01:00
Maxim Vafin f3fe6b3f00
[PT FE] Add EDSR models to GHA tests (#21350)
* [PT FE] Add EDSR models to GHA tests

* Apply suggestions from code review
2023-11-28 21:05:33 +00:00
Roman Kazantsev 7c590bf180
[Hub Tests] Apply Python code formatting (#21286)
* Apply Python code formatting

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

* Apply Python code formatting

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-11-28 16:54:02 +04:00
Maxim Vafin e52f922d35
[PT FE] Unify hub tests, add marks for timm models (#21283)
* Unify hub tests, add marks for timm models

* Fix hf tests
2023-11-27 12:22:13 +04:00
Ekaterina Aidova eaae00c2ca
[PT FE]: support aten::empty_like (#21258)
* [PT FE]: support aten::empty_like

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

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

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-11-27 07:15:19 +00:00
Ekaterina Aidova a5d53aeaef
[PT FE]: fix for aten::index_put_ if values.r > indices.r (#21255)
* [PT FE]: fix for aten::index_put_ if values.r > indicies.r

* add more complex test case
2023-11-27 07:01:16 +00:00
Luo Cheng 91660b1c05
[CPU] Fix ScaledDotProductAttension accuracy problem (#21217) 2023-11-26 14:47:04 +04:00
Evgeny Kotov 965313ba0b
[TF Hub][Perf Tests]Implement performance tests in precommit to compare read_model and convert_model paths (#21023)
* begin

* fixes

* measure time and compare

* fix bug + update precommint models

* cleanup

* add wget to install requirements; add to linux.yml

* fixes + improvements

* output results to html

* remove unneeded code

* fix

* code review fixes

* store downloaded models in cache

* use 1000 runs

* use model paths from tf-hub tests

* use tf hub api to download instead of wget; measure some time stats

* small fixes

* remove unneeded files

* use own list of models

* remove uneeded if

* remove unstable models

* remove unstable models

* fix requirements

* code review fixes

* Update .github/workflows/linux.yml

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

* fix round_num function

* remove unstable network

* Update tests/model_hub_tests/models_hub_common/test_performance_model.py

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

* code review fixes

* build fix

* code review fixes

* code review fixes

* code review fixes

* Update tests/model_hub_tests/models_hub_common/test_performance_model.py

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

* Update tests/model_hub_tests/performance_tests/test_tf_hub_perfomance_model.py

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

* Update tests/model_hub_tests/performance_tests/test_tf_hub_perfomance_model.py

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

* Update tests/model_hub_tests/models_hub_common/test_performance_model.py

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

* code review fixes: use autoflake

* remove unneeded tensorflow_text

* Update .github/workflows/linux.yml

* Update linux.yml

Added TensorFlow_Hub_Performance_Models_Tests to final status check

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-11-24 18:13:44 +04:00
Maxim Vafin 0e08ba1edc
[PT FE] Support aten::prod and aten::fmod (#21243) 2023-11-23 11:26:08 +01:00
Anastasiia Pnevskaia 823d327476
Fixed verbose param. (#21234) 2023-11-22 17:32:20 +04:00
Maxim Vafin 1a288f0e9a
[PT FE] Recognize empty non-frozen lists (#21224)
* [PT FE] Recognize empty non-frozen lists

* Do not produce alias for aten::clone
2023-11-22 11:58:53 +01:00
Maxim Vafin 570817998d
Update reverse infer to allow changing shape if it already partially defined (#21073)
* Update reverse infer to allow changing shape if it already partially defined

* Update tests

* Remove changes in If

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-11-20 21:57:43 +00:00
Roman Kazantsev bb773137f1
[TF Hub] Move all nightly scope to Kaggle links (#21169)
7 models are skipped since they are not moved there. Now they are not available.

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-11-20 13:33:21 +04:00
Przemyslaw Wysocki bd5bd56d29
Remove failing mxnet test (#21151) 2023-11-20 10:17:22 +01:00
Maxim Vafin 276153d1ce
[PT FE] Support aten::_weight_norm and aten::full with scalar size (#21160)
* Support aten::_weight_norm and aten::full with scalar size

* Add op_table changes

* Add comments
2023-11-17 19:13:15 +00:00
Maxim Vafin b2e14f9fad
[PT FE] Fix pad value dtype for pooling (#21139)
* [PT FE] Fix pad value dtype for pooling

* Apply suggestions from code review

* Apply suggestions from code review
2023-11-17 16:09:56 +01:00
Maxim Vafin 6bdc1597ed
[PT FE] Align types for aten::clamp_max and aten::clamp_min (#21137)
* Align types for aten::clamp_max and aten::clamp_min

* Add tests
2023-11-17 10:26:44 +01:00
Roman Kazantsev 2928b6bfed
[TF Hub] Move pre-commit to Kaggle model links (#21113)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-11-16 14:24:45 +04:00
Anastasiia Pnevskaia d304be0bd7
[OVC] Fixed error in --output_model param. (#20969)
* Fixed error in get_model_name_from_args(), added tests.

* Corrected output_model description.

* Corrected test.
2023-11-15 17:42:14 +04:00
Maxim Vafin 369831caef
[PT FE] Use system model cache when running torch hub tests locally (#21047)
* Use system model cache when running torch hub tests locally

* Update tests/model_hub_tests/torch_tests/test_torchvision_models.py

* Update tests/model_hub_tests/torch_tests/test_torchvision_models.py
2023-11-14 11:43:06 +01:00
dependabot[bot] fd403e552a
Bump pytest-html from 3.2.0 to 4.1.1 in /tests (#20949)
Bumps [pytest-html](https://github.com/pytest-dev/pytest-html) from 3.2.0 to 4.1.1.
- [Release notes](https://github.com/pytest-dev/pytest-html/releases)
- [Changelog](https://github.com/pytest-dev/pytest-html/blob/master/docs/changelog.rst)
- [Commits](https://github.com/pytest-dev/pytest-html/compare/v3.2.0...4.1.1)

---
updated-dependencies:
- dependency-name: pytest-html
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-13 17:43:35 +04:00
Roman Kazantsev 75c72157dd
[TF Hub] Add yamnet with complex tensors into precommit (#21035)
After fixing ov.Tensor creation for empty numpy array, we are ready to support yamnet

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-11-13 17:42:13 +04:00
Anastasiia Pnevskaia 5fa53aa715
Input and output order Keras tests. (#20902)
* Input/output order Keras tests.

* Added precommit mark.

* Added xfail.

* Small correction.

* Check input/outputs by names in FW.

* Moved output order tests to Python API group.

* Corrected comments.
2023-11-13 14:01:35 +04:00
Roman Kazantsev b64d6be8ba
[TF FE] Fix TF1 OD SSD PPN model conversion (#20994)
* [TF FE] Fix TF1 SSD PPN model conversion

It contains a case when one Merge node eliminated different conditional flows.

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

* Add layer test

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-11-10 11:44:28 +00:00
Sergey Lyalin 854158612f
Scaled dot product attention (#20492)
* Added experimental ScaledDotProductAttention operation in opset12. Supported in PT FE for aten::scaled_dot_product_attention translation. Decomposed in the common optimizations as functional reference.

* Better ScaledDotProductAttention

- Moved decomposition to the decomposing transformation
- Implemented more ctors for the op
- Renamed is_causal to causal
- Shape/type inference native code instead of using decomposition
- Moved the op from opset12 to opset13
- Added Python wrapper for ScaledDotProductAttention

* Fix test that counts ops in the opsets

* Update src/core/src/op/scaled_dot_product_attention.cpp

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>

* Update src/core/src/op/scaled_dot_product_attention.cpp

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>

* Move ScaledDotProductAttentionDecomposition from fusions to decompositions.

* Remove not used legacy shape inference in ScaledDotProductAttention

* Better namespace usage

* Register all nodes in ScaledDotProductDecomposition for correct tracking of nodes and running next mather passes on all new nodes.

* Don't use register_new_node_

* ScaledDotProductAttention specification (with an extra scale argument)

* Code style fix

* Scale input implementation for ScaledDotProductAttention

* Handle attention_mask=0 case in the op spec

* Better description of scale input

* N->M in scale description

* Code style fix, remove debug print.

* Apply suggestions from code review

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>
Co-authored-by: Mateusz Mikolajczyk <mateusz.mikolajczyk@intel.com>

* Fix for case when is_causal is not passed

* Extended description of ScaledDotProduct op

* Better description in py op wrapper

* Basic shape propagation tests for ScaledDotProductAttention

* Added ScaledDotProductAttention to toc.

* Add op impl check

---------

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>
Co-authored-by: Mateusz Mikolajczyk <mateusz.mikolajczyk@intel.com>
2023-11-08 20:17:13 +01:00
Roman Kazantsev c6ca7865fb
[TF FE] Fix conversion of TF1 OD models out-of-the-box (#20916)
* [TF FE] Fix conversion of TF1 OD models out-of-the-box

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

* Add test While with nested If operation

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

* Update tests/layer_tests/tensorflow_tests/test_tf_While.py

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-11-07 17:44:09 +00:00
Maxim Vafin cdd342ea49
[PT FE] Add ALIKED to model tests (#20899)
* Add ALIKED to model tests

* Update tests/model_hub_tests/torch_tests/test_aliked.py

* Update tests/model_hub_tests/torch_tests/test_aliked.py
2023-11-07 09:34:26 +01:00
Maxim Vafin e976e7b90c
[PT FE] Add tests for Speech-Transformer (#20847)
* Add tests for Speech-Transformer

* Update tests/model_hub_tests/torch_tests/test_speech-transformer.py

* Update tests/model_hub_tests/torch_tests/test_speech-transformer.py
2023-11-07 08:32:22 +01:00
Roman Kazantsev 494a9cf9a9
[TF FE] Refine tests for complex tensors support (#20905)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-11-07 10:29:45 +04:00
Roman Kazantsev d0eb27bd3b
[TF FE] Support Complex Tensors (#20860)
* [TF FE] Support complex tensors

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

* Align output type for Real and Imag operations

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

* Update decoding complex types

* Add support for ComplexAbs, FFT and IFFT operations

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

* Correct axes based on a number of inner-most dimensions

* Add layer tests

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

* Update supported ops documentation

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

* Add a comment for ComplexTypeMark

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-11-06 16:57:05 +04:00
Anastasiia Pnevskaia cc389c23ca
Removed logic of building example_input by shape. (#20859) 2023-11-03 20:45:34 +04:00
Roman Kazantsev 4a6e6e64c5
[TF FE] Fix conversion of FILM of keras.Model format (#20825)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-11-02 12:46:57 +04:00
Andrey Kashchikhin eea49f3c9e
[CI] [GHA] Remove full cloning of the OV repository in the Python unittests job in the Win and Mac workflows (#20810)
* rm full cloning of the OV repo in win and mac workflows

* skip tests on mac

* increase timeout for win C++ tests; skip more mac tests

* rm triggers
2023-11-01 22:20:22 +04:00
Roman Kazantsev 26c9c41b8e
Revert "[TF FE] Switch off TF1 While support totally (#20774)" (#20800)
This reverts commit 38b6092120.
2023-10-31 22:53:35 +04:00
Roman Kazantsev 38b6092120
[TF FE] Switch off TF1 While support totally (#20774)
* [TF FE] Switch off TF1 While support totally

This is a total switch off due to GPU limitation

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

* Need additional fallback in Enter to avoid shapes problem

* Disable tests with While op

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

* Disable layer test for TF1 While

* Remove extra spaces

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-10-31 12:46:36 +04:00
rsato10 53820c0cf2
[TF FE]Support Inv operation for TensorFlow models (#20720)
* [TF FE]Support Inv operation for TensorFlow models

* added test tests/layer_tests/tensorflow_tests/test_tf_Inv.py and src/frontends/tensorflow_common/src/op/inv.cpp

* Update tests/layer_tests/tensorflow_tests/test_tf_Inv.py

* Update tests/layer_tests/tensorflow_tests/test_tf_Inv.py

* Update tests/layer_tests/tensorflow_tests/test_tf_Inv.py

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-10-31 11:39:16 +04:00
Roman Kazantsev fc4fe07a0e
[TF FE] Fix CTCLoss translator (#20775)
* Fix CTCLoss translator

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

* Expend layer tests for CTCLoss

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-10-31 08:51:18 +04:00
Mateusz Mikolajczyk ce8ac6f478
[Opset13][TF FE] Enable tensorflow bitwise operators (#20340)
* Add opset-13 bitwise ops

* Fix issue in BinaryOps test

---------

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>
2023-10-30 23:18:28 +00:00
Ekaterina Aidova c21fd2ea61
[PT FE]: fix object has no attribute 'dtype' (#20755)
* [PT FE]: fix  object has no attribute 'dtype'

* add model in tests

* update test
2023-10-30 18:36:08 +00:00
Roman Kazantsev a4c47bf6ab
[TF FE] Fix body graph injection, CumSum and SparseFillEmptyRows (#20680)
* [TF FE] Fix body graph injection, CumSum and SparseFillEmptyRows

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

* Do not handle non-parameters in body

* Update layer test to cover default parameter and attribute values

* Fix layer tests

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-10-30 18:40:09 +04:00
Maxim Vafin bc9b52ef7e
Increase timeout for hub tests (#20764) 2023-10-30 18:27:00 +04:00
Mateusz Mikolajczyk fdb22c8610
[Opset13][PT FE] Update torch bitwise operators (#20339)
* Add opset-13 bitwise implementation

* Improvements in test

* Add transformation BitwiseOps->LogicalOps for bool

* Improve existing tests to better tests dtypes

* Disable transformatiions for supported bitwise ops

* Improvebitwise test inputs

* Update src/common/transformations/src/transformations/op_conversions/convert_bitwise_to_logical_bool.cpp

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>

* Update src/common/transformations/src/transformations/op_conversions/convert_bitwise_to_logical_bool.cpp

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>

* Update src/common/transformations/src/transformations/op_conversions/convert_bitwise_to_logical_bool.cpp

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>

* Update src/common/transformations/src/transformations/op_conversions/convert_bitwise_to_logical_bool.cpp

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>

* Update to REGISETR_PASS

---------

Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>
2023-10-30 13:11:14 +00:00
Maxim Vafin 7b9db3d81b
[PT FE] Add torch.int16 dtype support (#20735)
* Add torch.int16 dtype support

* Add test
2023-10-30 10:12:55 +01:00
Ekaterina Aidova 53c9a0f3d4
update pytorch layer tests for torch 2.1 compatibility (#20264)
* update pytorch layer tests for torch 2.1 compatibility
2023-10-30 08:30:01 +04:00
Maxim Vafin f029ebb8e2
[PT FE] Fix mask2former model marks in tests (#20717)
* [PT FE] Fix mask2former model marks in tests

* Use better machine

* Add more models

* Update .github/workflows/linux.yml
2023-10-27 21:04:30 +04:00
Siddhant Chauhan ae15f35f07
[PT FE] Add aten::is_nonzero (#20589)
* Add is_nonzero operator and test

* fix

* Update is_nonzero.cpp

* Update is_nonzero.cpp

* requested changes

* Update is_nonzero.cpp

* Update is_nonzero.cpp

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-10-27 15:04:57 +04:00
Maxim Vafin b06a0010ea
[PT FE] Disable failing pytorch layer test (#20719)
* [PT FE] Disable test

* Update tests/layer_tests/pytorch_tests/test_convnd.py
2023-10-27 07:54:30 +04:00
Maxim Vafin 5b8433ffbe
[PT FE] Fix issue with adding Result to mutated tensor (#20690)
* [PT FE] Fix issue with adding Result to mutated tensor

* Add test
2023-10-26 22:25:28 +02:00
Karan Jakhar 26632d1cd9
[PT FE] Add aten::__xor__ (#20662)
* Add __xor__

* Add xor tests

* add more xfail tests

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

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

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

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

* fix code style

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-10-26 18:28:47 +04:00
Mikhail Ryzhov 4078bd9c19
[GHA] Speed up PyTorch Layer unit tests (#20613)
* test

* fixed tests

* typo

* fixed tests

* rest of the tests

* fixed rsub test

* tmp fix

* Revert "tmp fix"

This reverts commit b8bf1e9492e13497895da488612c9a137ef840bc.

* fixed test params

* reset thirdparty/pugixml

* Revert "fixed rsub test"

This reverts commit 9b6be34b8666936e8124b6622fcc5185b640de92.

* fixed typo

* fixed test data

* reset test_rsub

* removed unused param

* reverrted runner

* simplified call

* fixed random

* changed logical to auto mode

* Revert "fixed random"

This reverts commit 8a4f20b24641144f823a7e1f1ff92038634acf32.

* fixed test_all

* replaced random_sample with randn

* fixed rebase issue

* reverted logical splitting

* Update tests/layer_tests/pytorch_tests/test_repeat_interleave.py

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

* Update tests/layer_tests/pytorch_tests/test_all.py

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

* Apply suggestions from code review

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

* fixed merge conflict

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-10-26 13:10:51 +04:00
Siddhant Chauhan bc463e886b
[PT FE] Add aten::log10 (#20621)
* Add log10 operator and test

* fix

* Update test_log.py

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-10-25 14:14:22 +04:00
Maxim Vafin 46f46c6cc6
[PT FE] Fix xmod model test (#20682) 2023-10-25 08:00:34 +02:00
Maxim Vafin 8d0381b0fe
[PT FE] Implement custom op for types alignment (#20431)
* [PT FE] Implement custom op for types alignment

* Fix code style

* Fix inplace ops

* Fix layer tests

* Remove no longer needed change

* Fix ovc tests

* Fix fe tests
2023-10-23 22:54:08 +02:00
Roman Kazantsev 009ef5657c
[TF FE] Provide full support of TF1 Control flow and TensorArray* ops (#20270)
* [TF FE] Provide full support of TF1 Control flow and TensorArray ops

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

* Add missed header for TensorArrayV3 op

* Temporarily disable GRU cell fusion

* Update src/common/transformations/src/transformations/common_optimizations/moc_transformations.cpp

* Fix a case when element_shape for TensorArrayV3

* Fix translator for TensorArrayCloseV3

* Update summarize graph with TensorArrayCloseV3

* Add layer tests for TensorArrayScatterV3, Close, Size, Array

* Fix output shape for Merge node

* Remove unused variable

* Fix translator for TensorArrayConcatV3

* Fix translator for TensorArrayConcatV3

* Add layer tests for TensorArrayWriteV3, Gather, and Concat

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

* Add translator for GatherTree

* Fix TF FE unit-test for GatherTree

* Fix GatherTree translator

* Fix GatherTree translator to handle 1d end_token

* Fix undeclared parameter issue

* Fix GatherTree unit-test

* Add TensorArrayV3Replacer transformation

* Temporarily disable dangling transformation

* Recover RemoveMultiSubGraphOpDanglingParamsResults transformation

* Recover GRUCellFusion transformation

* Simplify check for GRUCellFusion transformation

* Use proper name for unit-tests

* Simplify translator for TensorArrayWriteV3

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

* Fix RemoveMultiSubgraphOpDanglingParamsResults transformation

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

* Additional fix for remove_multi_subgraph_op_dangling_params

* Make static TI run a dynamic subgraph

* Dedicated SL test

* Change condition to respect stat shapes

* Adjust test to cover the code path properly

* Recover fallback for still failing case GNMT

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Co-authored-by: Maksim Kutakov <maksim.kutakov@intel.com>
2023-10-23 22:50:26 +02:00
Andrey Kashchikhin b67cff7cd5
[CI] [GHA] Introduce macOS ARM64 as a matrix parameter in the macOS pipeline (#20363)
* add m1 mac pipelines as a matrix parameter

* Update mac.yml

disable java_api because of macos arm64 - Java is not available on macOS arm64 runners

* Update mac.yml

added always condition for all tests

* Update mac.yml

* Update mac.yml

* Update mac.yml

* Update setup.py

temp commit

* Update tools/openvino_dev/setup.py

* use matrix for var

* add mxnet to extras only for x86_64

* skip failing tests

* use xfail for Python tests; add missing filter for transformations tests

* skip CPU func tests on x86_64 mac; skip some tests from CPU func tests on arm mac

* Update mac.yml

* skip tests on mac arm

* skip tests on darwin; apply review

* add more skips for python and c++ tests

* skip tf tests

* skip more tf tests; skip more Python UT stages

* rm alwayses, rm triggers, add nightly trigger

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-10-23 15:06:22 +04:00
Maxim Vafin b17d0fe7f5
Update model list for hf hub tests (#20485)
* Update model list and install cpu torch

* Move to hub tests

* Update tests/model_hub_tests/torch_tests/requirements.txt

* Make pytorch mainteiners owners of torch tests
2023-10-20 20:12:00 +04:00
Mateusz Mikolajczyk 891f79ac84
[PT FE] Add aten::as_strided (#19482)
* Add aten::as_strided

* rm commented code

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

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

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

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

* Fix CI error

* Fix CI issues

* mark_node for remaining constants

* Add test reproducing issue

* Use strides from torchscript

* Add led model to test suite

* Add sugested changes

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-10-20 14:24:10 +04:00
rsato10 9edbcb1d4d
[TF FE] Support ToBool operation (#20511)
* [TF FE][TF Hub] Support ToBool operations

* [TF FE][TF Hub] Support ToBool operations

* fixing select operation Support ToBool operations for TF Hub models

* added false and true const for tobool operations

* added reduction axes

* Apply suggestions from code review

* Update tests/layer_tests/tensorflow_tests/test_tf_ToBool.py

* Update tests/layer_tests/tensorflow_tests/test_tf_ToBool.py

* Update tests/layer_tests/tensorflow_tests/test_tf_ToBool.py

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

* added second zero constant

* added correct types  src\frontends\tensorflow_common\src\op\tobool.cpp

* added includes src\frontends\tensorflow_common\src\op\tobool.cpp

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

* remove select and not_equal src/frontends/tensorflow_common/src/op/tobool.cpp

* Apply suggestions from code review

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

* Apply suggestions from code review

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

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-10-20 14:22:30 +04:00
Siddhant Chauhan ec2ae003aa
[TF FE][TF Hub] Support TruncateDiv operation (#20615)
* [TF FE][TF Hub] Support TruncateDiv operation

* [TF FE][TF Hub] Support TruncateDiv operation

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

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-10-20 01:58:58 +04:00
Siddhant Chauhan 070678fc19
[TF FE][TF Hub] Support TruncateMod operation (#20468)
* [TF FE][TF Hub] Support TruncateMod operation

* Update truncate_mod.cpp

* fix
2023-10-19 22:40:38 +04:00
Mustafa Cavus 3d5fe8d446
Llm and sd additional ops (#20435)
* TorchFX: New ops added (baddbbmm, leaky_relu_)

* TorchFX: Initial scaled_dot_product_flash_attention

* Code Formatting: scaled_fot_product_attention translation

* TorchFX unit test enabled for SDPA

* Typo fix in comment line

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

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-10-19 21:21:28 +04:00
Ekaterina Aidova 222fbb1aec
[PT FE]: support aten::fill_diagonal_, aten::fill (#20395)
* [PT FE]: support aten::fill_diagonal_, aten::fill

* remove xfail

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

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

* Update tests/model_hub_tests/torch_tests/test_hf_transformers.py

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-10-18 10:58:54 +02:00
Siddhant Chauhan a30e25c725
[TF FE][TF Hub] Support BatchMatMulV3 operation (#20528)
* [TF FE][TF Hub] Support BatchMatMulV3 operation

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

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

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-10-18 09:49:33 +04:00
Maxim Vafin f3b61d77e3
[GHA] Filter timm scope for model hub tests (#20525)
* Filter timm scope

* Apply suggestions from code review
2023-10-17 23:01:50 +04:00
Siddhant Chauhan 07a29f80b4
[TF FE][TF Hub] Support Xlog1py operation (#20500)
* [TF FE][TF Hub] Support Xlog1py operation

* Update test_tf_Xlog1py.py
2023-10-17 11:36:13 +04:00
Siddhant Chauhan a5b5623ece
[TF FE][TF Hub] Support Xlogy operation (#20467)
* [TF FE][TF Hub] Support Xlogy operation

* fix

* fix

* fix

* fix

* Update tests/layer_tests/tensorflow_tests/test_tf_Xlogy.py

* Update tests/layer_tests/tensorflow_tests/test_tf_Xlogy.py

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-10-16 15:52:30 +04:00
Andrey Kashchikhin 2e33019e68
[CI] [GHA] Align pipelines (#20388)
* add ONNX layer tests

* add parallelism for pytest; add missing stages to win; align execution steps

* add missng shell option

* add missing dep, update marker

* align stages and execution commands; rm parallelization

* enable trigger

* add missing export; rm not-applicable stage from mac and win pipeline

* add missing requirement, rm not-applicable stage

* add missing test parameters

* try to pi onnxruntime version; skip mxnet on mac; correct vars in win

* rm constraint

* skip on win

* use xfail

* remove always(), rm trigger for mac

* return push trigger for mac
2023-10-13 23:48:15 +04:00
Ekaterina Aidova 9bedafb560
[PT FE]: support aten::erf and aten::adaptive_avg_pool1d (#20350)
* [PT FE]: support aten::erf and aten::adaptive_avg_pool1d

* align adaptive avg pools for different sizes

* refactor adaptive max pool
2023-10-11 17:33:32 +04:00
Przemyslaw Wysocki 3403e6c028
Add torch lower bound (#20362) 2023-10-11 14:22:26 +02:00
Roman Kazantsev 0bb6450398
[TF FE] Support TF 2.14 and add OnesLike translator (#20385)
* [TF FE] Support TF 2.14 and add OnesLike translator

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

* Update tests constraints

* Update open_model_zoo

* Adopt TF Lite test to 2.14 TF

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

* Support TF Lite layer tests for diffrent TF versions

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-10-11 15:24:32 +04:00
Ilya Lavrenov 35308ce34d
Use np.float32 instead of np.float (#20377) 2023-10-11 03:29:56 +04:00
Ilya Lavrenov df55e282e3
Update tensorflow requirement in /src/bindings/python (#20372)
Updates the requirements on [tensorflow](https://github.com/tensorflow/tensorflow) to permit the latest version.
- [Release notes](https://github.com/tensorflow/tensorflow/releases)
- [Changelog](https://github.com/tensorflow/tensorflow/blob/master/RELEASE.md)
- [Commits](https://github.com/tensorflow/tensorflow/compare/v1.15.5...v2.14.0)

---
updated-dependencies:
- dependency-name: tensorflow
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-11 02:18:14 +04:00
Ilya Lavrenov b3ead62631
Fixed numpy deprecation error (#20375) 2023-10-11 00:38:23 +04:00
Andrey Kashchikhin 3ebadc14d1
[CI] [GHA] mac pipeline review leftovers; small cleanup of the Linux pipeline (#20353)
* skip gna-related tests on mac; rm unused in pipelines

* rm unused env var

* use if instead of commenting out

* add name

* return pr trigger

* rm pr trigger
2023-10-10 17:10:46 +04:00
Ekaterina Aidova 0dcde7f7bc
[PT FE]: support aten::pixel_unshuffle (#20325) 2023-10-10 15:18:35 +04:00
Ekaterina Aidova a5b6606132
[PT FE]: support aten::amax, aten::amin, aten::clip, aten::clamp_ (#20338) 2023-10-10 11:05:10 +00:00
Andrey Kashchikhin 1454e77bbf
[CI] [GHA] Introduce GHA macOS Pipeline (#20212)
* start transferring

* start with samples

* start with initial two stages

* change name

* skip pytorch tests; rm unused comments

* rm setupvars sourcing; make test steps similar to those in linux pipeline

* add missing options and setupvars sourcing

* add skips for mac

* install wheels directly

* add deployment target

* add skips for pytorch layer tests; experiment with samples

* do not exclude files for archives; set rpath

* apply comments; rm unnecessary stages

* Update mac.yml

fixed MO Python API tests

* Update .github/workflows/mac.yml

* Update openvino.cmake

add LC_RPATH to libopenvino.dylib

* Update src/cmake/openvino.cmake

* Update CMakeLists.txt

reverted changes in samples build

* Update openvino.cmake

removed rpath changes

* add setupvars

* disable pr trigger

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-10-10 14:43:09 +04:00
Maxim Vafin 0fec05ecf2
Mark models according to last validation and fix some problems in models (#20324)
* Mark models according to last validation and fix some problems in models

* Update tests/model_hub_tests/torch_tests/hf_transformers_models
2023-10-10 11:23:23 +02:00
Ekaterina Aidova 67a62186ee
support aten::channel_shuffle (#20240)
* support aten::channel_shuffle

* remove getting rank
2023-10-10 08:16:26 +02:00
Maxim Vafin feaf05cc5f
[PT FE] Support aten::max_poolnd_with_indices (#20322) 2023-10-10 08:00:02 +02:00
Ilya Lavrenov ead4b8a0ec
Moved cmake functions, variables to API 2.0 naming style (#20281)
* Merge Linux CC + static build + clang compiler

* Improvements

* Removed ie prefixes from cmake scripts

* Fixes for NPU
2023-10-09 22:30:32 +04:00
Mikhail Ryzhov 7e7b6482aa
[GHA][HF] Switch python nightly tests to github runners (#20286)
* switched runners to GHA

* excluded timm models from nightly scope

* added sudo steps

* switched precommit too
2023-10-07 02:22:32 +04:00
Ekaterina Aidova bb2c2fab6c
[PT FE]: support aten::log1p, fixes for where and linalg_norm (#20167)
* [PT FE]: support aten::log1p, fixes for where and linalg_norm

* clarify norm behaviour
2023-10-06 08:26:12 +00:00
Maxim Vafin 6664164ce4
Fix results validation (#20246)
* Fix results validation

* Remove pt quantization

* Apply suggestions from code review

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

* Refactor requirements

* Revert "Refactor requirements"

This reverts commit f78fe3d774.

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-10-05 18:31:06 +04:00
Roman Kazantsev 747a799e8b
[PyTorch FE] Set upper-bound for PyTorch (#20251)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-10-05 11:53:06 +04:00
Maxim Vafin 35e72251e9
[PT FE] Add support for aten::numpy_T and aten::feature_dropout (#20136)
* Add support for aten::numpy_t and aten::feature_dropout

* Update tests/layer_tests/pytorch_tests/test_transpose.py

Co-authored-by: Ekaterina Aidova <ekaterina.aidova@intel.com>

---------

Co-authored-by: Ekaterina Aidova <ekaterina.aidova@intel.com>
2023-10-03 09:52:29 +00:00
Vitaliy Urusovskij 78ef7e85c9
Return missed `return pmc;` (#20118) 2023-10-02 14:01:18 +04:00
Roman Kazantsev b409ea1930
[TF FE] Support TF1 While Control flow (#20105)
* [TF FE] Support TF1 While Control flow

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

* Apply code-style fix

* Update API for OpPlace to store back edge

* Fix build: no rvalue by reference passing

* Fix build issue: correct type

* Fix TF FE unit-tests

* Apply code-review feedback: remove unused vars

* Fix fusing complicated case of TF1 While

* Remove unused variable

* Update MO unit test

* Fix layer tests for While

* Handle Switch and NextIteration nodes connected directly

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-10-02 09:56:10 +04:00
Maxim Vafin f38b5f4f06
[PT FE] Support moving TupleConstruct inside If body (#20081)
* Support moving TupleConstruct inside If body

* Fix win build

---------

Co-authored-by: Alina Kladieva <alina.kladieva@intel.com>
2023-09-28 23:11:09 +02:00
Maxim Vafin 64cc3a96bb
Restrict version of pytorch-quantization (#20137) 2023-09-28 23:11:41 +04:00
Mikhail Ryzhov f85a276782
[GHA] Azure pip cache (#20029)
* switched PyTorch_Models

* fixed root issue

* upgrade pip

* set bash environments

* install pip deps

* added git installation

* added g++ deps

* added python-dev package

* get particular python-dev package

* fixed package name

* removed python-dev

* cython dep

* debug

* fixed inlude path

* test cache

* set home dir

* changed disk space calculation

* crosspipeline pip cache

* added tag for source builded deps

* immutable deps

* use commit id instead of tag

* Update .github/workflows/linux.yml

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

* fixed logs upload condition

* removed pip upgrade

* changed  detectotron version

* Update tests/model_hub_tests/torch_tests/requirements_secondary.txt

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

* changed wheel installation way

* reset onednn

* added cleanup workload

* cleanup test

* fixed reqs install

* test cache depending on pip version

* syntax fix

* env overwriting test

* test env output

* fixed set env step

* move pip cahc initialization to step

* changed pip ver regexp

* set custom pip cahce for each step

* cleanup code and enabled test cleanup job

* test cleanup 2

* speedup removal

* check existed dir

* Enabled cache for samples job

* removed debug job

* changed way how to get pip ver

* improved pip version extration

* revert omz

* switched PyTorch_Models

* fixed root issue

* upgrade pip

* set bash environments

* install pip deps

* added git installation

* added g++ deps

* added python-dev package

* get particular python-dev package

* fixed package name

* removed python-dev

* cython dep

* debug

* fixed inlude path

* test cache

* set home dir

* changed disk space calculation

* crosspipeline pip cache

* added tag for source builded deps

* immutable deps

* use commit id instead of tag

* Update .github/workflows/linux.yml

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

* fixed logs upload condition

* removed pip upgrade

* changed  detectotron version

* Update tests/model_hub_tests/torch_tests/requirements_secondary.txt

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

* changed wheel installation way

* added cleanup workload

* reset onednn

* cleanup test

* fixed reqs install

* test cache depending on pip version

* syntax fix

* env overwriting test

* test env output

* fixed set env step

* move pip cahc initialization to step

* changed pip ver regexp

* set custom pip cahce for each step

* cleanup code and enabled test cleanup job

* test cleanup 2

* speedup removal

* check existed dir

* Enabled cache for samples job

* removed debug job

* changed way how to get pip ver

* improved pip version extration

* revert omz

* review fixes

* remove  cache files using atime

* mtime->atime

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-09-28 22:21:32 +04:00
Maxim Vafin 84d98d8bf7
[PT FE] Add support for aten::pixel_shuffle (#20124)
* [PT FE] Add support for aten::pixel_shuffle

* Add comments

* Update src/frontends/pytorch/src/op/pixel_shuffle.cpp
2023-09-28 19:09:54 +02:00
Maxim Vafin fea6db1a5f
[PT FE] Fix issue when cat input is folded to tensor (#20090)
* [PT FE] Fix issue when cat input is folded to tensor

* CHeck real first input

* Update src/frontends/pytorch/src/op/cat.cpp
2023-09-28 10:52:09 +02:00
Ilya Lavrenov 8349849e1c
Use FindPython3.cmake (#19847)
* Use FindPython3.cmake

* Fixed compilation on macOS 14 with new core development tools

* Try to use Python3_SOABI instead of PYTHON_MODULE_EXTENSION

* Use Development.Module

* Keep specifying only Python3_EXECUTABLE

* Print PYTHON_MODULE_EXTENSION

* Added check for minimal cmake version for python API

* Returned Python3_INCLUDE_DIR for cross-compilation case

* Try to allow cmake older than 3.18

* Use build python interpreter to check cython dependency

* revert changes in .ci/openvino-onnx/Dockerfile

* removed unused code

* Fixed issue with variables scope

* Experiment: remove include dirs

* Corrected docs

* Use pybind11 function to set extension

* Revert "Experiment: remove include dirs"

This reverts commit 6f7f90211c.

* Refactor ConvolutionBackpropDataLayerTest, ConvolutionLayerTest, DeformableConvolutionLayerTest (#19810)

* Refactor ConvolutionBackpropDataLayerTest

* Refactor ConvolutionLayerTest

* Refactor DeformableConvolutionLayerTest

* Apply comments

* Apply comments

* Fix

* Updated minimum cmake version for Windows

* Simplified check

* Removed useless message status

* Use puiblic option

---------

Co-authored-by: Oleg Pipikin <oleg.pipikin@intel.com>
2023-09-26 20:57:29 +02:00
Anastasiia Pnevskaia 2bbfe7b44d
Added support of shapes and types from original FW in ov.convert_model() (#20009)
* Added support of shapes and types from paddle, torch and tf.

* Removed changes from requirements.

* Corrected test.

* Moved helper methods to utils.

* Separated tests by frameworks.

* Removed changes from complex_params test.
2023-09-26 17:41:01 +04:00
Ilya Lavrenov 85145cd60c
Refactored Linix GHA pipeline (#20021)
* Refactored Linix GHA pipeline

* Move ONNX tests to Unit

* Install tests together with openvino

* Added checks for GNA usage in docs python snippets

* Install openssl for working pip

* Disabled onnx_dyn_shapes_expand_1_dyn_shape ONNX test

* exclude dyn shapes from onnx

* Migrated samples tests

* Fixed ONNX tests

* caches for PT tests dependencies

* Build Contrib separately from main OpenVINO

* More fixes

* Added python install for samples stage

* Installed manifests for ONNX FE tests

* Try to avoid libgl1 dependency in tests

* Clean-up

* Fixed issue with manifests in ONNX tests
2023-09-25 17:00:30 +04:00
Maxim Vafin f735999e7b
Improve testing for hf models (#20017) 2023-09-22 20:10:33 +00:00
Ekaterina Aidova c76475288b
[PT FE]: support aten::scatter_reduce and extend aten::scatter (#19980)
* [PT FE]: support aten::scatter_reduce and extend aten::scatter out arg support

* create mapping inside function
2023-09-22 15:05:33 +04:00
Pavel Esir 9271b79540
[OVC] do not parse inputs for py_api (#19742)
* [OVC] do not parse inputs

* fix unit-tests

* remove redundant lines, add test case

* add one more unit-test

* skip None values

* replace str with List in test_mo_import_from_memory

* corrected type hints, added a safety assert
2023-09-22 15:05:21 +04:00
Ekaterina Aidova 26d18c924b
[PT FE]: support aten::broadcast_tensors (#19994)
* broadcast tensors

* [PT FE]: support aten::broadcast_tensors

* apply review comments

* remove add
2023-09-22 13:54:44 +04:00
Maxim Vafin 2151e5f979
[PT FE] Add tests for timm models (#19997)
* Add tests for timm models

* Apply suggestions from code review

* Some improvements

* Update tests/model_hub_tests/torch_tests/test_transformers.py
2023-09-22 10:34:07 +02:00
Ekaterina Aidova 8d59fcd34f
[PT FE]: extend logical operations support (#19981)
* [PT FE]: extend logical operations support

* tests

* more tests
2023-09-22 10:11:36 +04:00
Ekaterina Aidova fde054e4a6
[PT FE]: support aten::minimum aten::maximum (#19996) 2023-09-22 09:30:57 +04:00
Maxim Vafin 058b45e608
[PT FE] Fix aten::repeat regression (#19991)
* Revert "[PT FE] Simplify repeat operation (#19926)"

This reverts commit f926e0e392.

* Fix aten::repeats regression

* Simplify

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

* Add impacted model
2023-09-21 23:58:09 +02:00
Maxim Vafin 02f5b7a7e3
[PT FE] Add huggingface hub tests (#19858)
* [PT FE] Add huggingface hub tests

* Update requirements.txt

* natten can't be installed

* Remove librosa

* Add xfail and skip marks

* Remove t5

* Free up space

* Apply suggestions from code review

* Report free space

* Clean pip cache

* Temporarily disable det2 models

* More du info

* Remove tmp info

* More du stats

* Fix du report

* Optimize du

* Ignore error

* Finalize changes

* Update tests/model_hub_tests/torch_tests/test_transformers.py
2023-09-21 17:30:17 +02:00
Vitaliy Urusovskij b00fbd04c5
Fix `StressMemLeaksTests` with several models (#19986)
* Fix `StressMemLeaksTests` with several models

* Fix OMZ branch name in `get_testdata.py`
2023-09-21 15:59:18 +02:00
Maxim Vafin 37d54bcb42
[PT FE] Support prim::TupleIndex operation (#19978)
* [PT FE] Support prim::TupleIndex

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

* Update src/frontends/pytorch/src/op/tuple_index.cpp
2023-09-21 15:57:42 +02:00
Ekaterina Aidova 2c88fbf798
[PT FE]: support mixed precision in aten::min/max (#19936)
* [PT FE]: support mixed precision in aten::min/max

* fix eltwise dtype alignment for float16
2023-09-20 11:26:18 +04:00
Anastasiia Pnevskaia 215a2f435b
tf.Graph decoder accuracy fixes (#19903)
* Fixed outputs passing from decoder.

* Fixed get_variable method.

* Code style.

* Removed xfails from precommit models.

* Minor fix.

* Comment fixed.

* Added test.
2023-09-19 19:04:24 +02:00
dependabot[bot] 472ad39a9d
Update numpy requirement from <1.26,>=1.16.6 to >=1.16.6,<1.27 in /tests (#19938)
Updates the requirements on [numpy](https://github.com/numpy/numpy) to permit the latest version.
- [Release notes](https://github.com/numpy/numpy/releases)
- [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst)
- [Commits](https://github.com/numpy/numpy/compare/v1.16.6...v1.26.0)

---
updated-dependencies:
- dependency-name: numpy
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-19 18:18:42 +04:00
Roman Kazantsev a139fb48b7
[TF FE][JAX] Add upper bound for jax dependencies (#19943)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-09-19 14:00:54 +04:00
Vitaliy Urusovskij 6b5a22a656
Add `bert-base-ner` in MemLeak tests (#19817)
* Add `bert-base-ner` in MemLeak tests

* Fix segfault caused by `fillTensorRandom()`
2023-09-19 11:27:23 +04:00
Roman Kazantsev 6556d07c32
[TF FE][Tests] Fix sporadic failure in CTCLoss test (#19920) 2023-09-18 20:25:44 +00:00
Maxim Vafin c10b45fe9e
[PT FE] Fix issue with http error when using torch.hub (#19901)
* [PT FE] Fix issue with http error when using torch.hub

* Mark failing models as xfail

* Remove incorrect model names
2023-09-18 17:04:39 +02:00
Roman Kazantsev d90ceb93d1
[TF Hub][TF FE] Fix 5D case for FusedBatchNorm (#19904)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-09-18 12:51:33 +00:00
Roman Kazantsev df19699e3a
[TF Hub API][TF FE] Support TF Keras Model OOB without example_input (#19892)
* [TF Hub] Cover TF Hub use cases with adoption to OpenVINO

This is necessarily to demonstrate support of models programmed with TF Hub API
through OV notebooks.

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

* Preserve original keras input and output tensor names

* Add tests with TF Hub API models

* No KerasLayer handling

* Handle specific signature

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-09-18 12:18:05 +00:00
Maxim Vafin a4cbac3dee
[PT FE] Add tests for detectron2 models (#19888)
* [PT FE] Add tests for detectron2 models

* Fix names of tests

* Apply suggestions from code review

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

* Create secondary requirements file

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-09-18 13:40:40 +02:00
Ilya Lavrenov ba67db66ae
Properly enable CMAKE_COMPILE_WARNING_AS_ERROR (#19828)
* Properly enable CMAKE_COMPILE_WARNING_AS_ERROR_DEFAULT

* Properly enable CMAKE_COMPILE_WARNING_AS_ERROR
2023-09-15 01:20:00 +04:00
Anastasiia Pnevskaia 18f29c02d2
Fixed scalar creating in tf.Graph decoder (#19735)
* Fixed scalar logic in tf.Graph decoder.

* Passed memory sharing flag to all Tensor constructors.

* Small correction.

* Test correction.
2023-09-14 23:36:22 +04:00
Przemyslaw Wysocki b1b3343ffc
[PyOV] Bump `scipy` to a secure version and bump OMZ (#19458)
* Bump omz and scipy

* Separate versions per python version

* Change scipy in pot
2023-09-14 13:41:27 +02:00
Maxim Vafin 1a950f9e8d
[PT FE] Torchvision NMS can accept negative scores (#19826) 2023-09-14 11:07:24 +02:00
Maxim Vafin 4f92676c85
[PT FE] Support aten::one_hot (#19779)
* [PT FE] Support aten::one_hot

* Apply code style
2023-09-13 20:37:47 +02:00
Maxim Vafin 3c762240f3
[PT FE] Add tests for torchvision models (#19702)
* [PT FE] Add tests for torchvision models

* Update tests/model_hub_tests/torch_tests/requirements.txt

* Apply review comments

* Clean tmp directory and make this separate job

* Update .github/workflows/linux.yml

* Update tests/model_hub_tests/torch_tests/test_torchvision_models.py
2023-09-13 15:24:09 +04:00
Roman Kazantsev d1a8c8f914
[TF Hub] Set seed for input data generation and fix integer input data (#19765)
* [TF Hub] Set seed for input data generation and fix integer input data

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

* Clean-up workflow

* Update precommit model scope

* Avoid legacy generator

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-09-13 00:30:39 +04:00
Maxim Vafin a6bc78dd0f
[PT FE] Separate tracing and scripting modes (#19676)
* [PT FE] Separate scripting and tracing in decoder

* Fix convert_model to accept decoder

* Some fixes

* Fix code style

* Fix preprocessor tests

* Fix tests

* Fix tests

* Fix more tests

* Fix ovc tests
2023-09-12 12:40:20 +04:00
Roman Kazantsev 530da61a4e
[TF Hub] Fix compute output size issue in test (#19719)
It helps to get 4 new models passed and other 2 models failed with accuracy issue.

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-09-11 12:14:09 +04:00
Roman Kazantsev 37f61551a3
[TF FE][TF Hub] Use ConcreteFunc input and output signatures (#19690)
* [TF Hub][TF FE] Preserve outputs of ConcreteFunction from signature and their names

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

* Fix naming and complete TODO

* Apply code-review: extra assert to check input_signature

* Fix inputs for fw

* Fix input data preparation and import convert_model

* Correct variable detection among all inputs

* Handle special input and output signature

* Fix adjust_saved_model_names

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-09-10 03:46:01 +00:00
Maxim Vafin e83697ded4
[PT FE] Implement override_all_inputs, override_all_outputs (#19642)
* Implement override_all_inputs, override_all_outputs

* Apply suggestions from code review

Co-authored-by: Piotr Krzemiński <piotrkrzeminski1234@gmail.com>

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

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

* Resolve problem with self input

* Update place.cpp

* Update place.cpp

* Fix build

---------

Co-authored-by: Piotr Krzemiński <piotrkrzeminski1234@gmail.com>
2023-09-08 22:31:49 +02:00
Roman Kazantsev 63a6d4c41e
[TF Hub][GA] Set correct scheduler and model scope for regular validation (#19658)
* [TF Hub][GA] Set correct scheduler and model scope for regular validation

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

* Remove empty line

* Update .github/workflows/linux.yml

Co-authored-by: Andrey Kashchikhin <andrey.kashchikhin@intel.com>

* Correct a path to output html report

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Co-authored-by: Andrey Kashchikhin <andrey.kashchikhin@intel.com>
2023-09-06 22:51:31 +02:00
Maxim Vafin bacb83f8a2
Support aten::tile op (#19645) 2023-09-06 17:28:22 +00:00
Roman Kazantsev 4f7ac430fc
[TF Hub][TF FE][GA] Establish regular validation for all TF Hub models (#19649)
* [TF Hub][TF FE] Establish regular validation for all TF Hub models

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

* Correct names of reports

* Simplify configuration

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-09-06 17:02:59 +02:00
Roman Kazantsev 023a2f462a
[TF Hub][Notebook] Secure future notebook models in the precommit (#19652)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-09-06 18:43:30 +04:00
Roman Kazantsev 188d53d813
[TF Hub][TF FE] Clean-up all downloaded files for TF Hub models validation (#19612)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-09-05 13:07:13 +00:00
Roman Kazantsev 4eadef9e61
[TF Hub][TF FE] Make TF Hub validation more robust and add convenient xfail test marking (#19596)
* [TF Hub][TF FE] Use multiprocessing based tests for TF Hub validation

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

* Fix import and initialization

* [TF Hub][TF FE] Make TF Hub validation more robust and add convenient marking for failing cases

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-09-05 09:41:01 +04:00
Mateusz Mikolajczyk c46f6bf115
[PT FE] Add aten::swapaxes (#19483)
* Add aten::swapaxes

* Add comment

* Improve swapaxes tests
2023-09-04 13:04:28 +02:00
Ekaterina Aidova 90ef7096b9
[PT FE]: support PReLU (#19515)
* [PT FE]: support PReLU

* Update tests/layer_tests/pytorch_tests/test_prelu.py

* Apply suggestions from code review

Co-authored-by: Piotr Krzemiński <piotrkrzeminski1234@gmail.com>

---------

Co-authored-by: Piotr Krzemiński <piotrkrzeminski1234@gmail.com>
2023-09-04 07:36:42 +00:00
Roman Kazantsev 44657183f3
[TF Hub][TF FE] Fix TF Hub models validation and extend precommit (#19567)
* Add all scope of models for testing

* Fix signature in test

* Fix workaround with output tensor names

* Fix unknown rank input resource case

* [TF Hub][TF FE] Fix TF Hub model validation and extend precommit

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

* Remove unneeded comments

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-09-04 07:41:42 +02:00
Pavel Esir b8226db465
[OVC] Fix output parsing (#19425)
* fix parsing output

* use always coma backspace to separate outputs ', '

* update docstring

* call parser only for ovc cli tool

* docstring correction

* separate docs for cli tool and convert_model; other minor changes

* drop redundant arg from cli_parser_test.py

* more solid test cases added

* remove redundant argv.framework from cli_parser_test.py

* shape correction in concat

* Apply suggestions from code review

fix: coma -> comma

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

* apply review suggestions

* remove extra ')'

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-09-01 11:20:22 +02:00
Roman Kazantsev 2cf8f2bc1f
[TF FE][GitHub issue] Support Selu operation and add test (#19528)
* [TF FE] Support Selu operation and add test

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

* Fix layer test

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-09-01 09:09:58 +00:00
Vitaliy Urusovskij 81a02c5586
Fix `stoi` out_of_range issue (#19455)
* Fix `stoi` out_of_range issue

* Handle incorrect behavior and throw exception

* Remove use of `getVmSizeInKB()` in `TestsCommon()`
2023-08-31 04:19:13 +04: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
Roman Kazantsev 1d0d00bf22
[TF Hub][GitHub Actions][TF FE] Introduce TF Hub Models Validation in GitHub Actions (#19368) 2023-08-23 18:40:31 +00:00
Ekaterina Aidova 80b8b6fff1
[PT FE]: allow example input list with single tensor (#19308) 2023-08-23 12:08:39 +04:00
Pavel Esir 90f6500871
[tests] switch layer tests to FP16 on pre-commit (#19090)
* switch to FP16 on layer tests on precommit; add Pytorch layer tests for precision sensitive subgraph

* remove redundant changes

* moved precision sensitive tests into test_mo_convert_pytorch.py

* remove redundant dumping

* skip layer tests with chaotic output

* add copy() to avoid side effects
2023-08-21 16:03:47 +04: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
Vitaliy Urusovskij dea2310153
Add `recreate_and_infer_in_thread` memleak test (#19078)
* Add `recreate_and_infer_in_thread` memleak test

* Add custom threshold for memleak test

* Update tests/stress_tests/common/ie_pipelines/pipelines.cpp
2023-08-17 17:13:07 +04:00
Anastasiia Pnevskaia 3ef345095c
Set CF=False. (#19223) 2023-08-17 11:22:26 +04:00
Anastasiia Pnevskaia 7a566313e5
Fixed 'output_model' logic in OVC. (#19171)
* Fixed output_model logic.

* Removed not needed code.

* Used os.path.basename, added comments.

* Removed loop.

* Test corrections.
2023-08-17 09:47:18 +04:00
Anastasiia Pnevskaia 3e23908983
Improvements and fixes in OVC convert_model (#19184)
* Added support of tuple in input, removed type syntax from OVC tool.

* Removed type syntax tests.

* Apply suggestions from code review

* Method annotation corrected.

* Type annotation corrected.

---------

Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>
2023-08-17 09:45:30 +04:00
Ivan Tikhonov 8509737d0a
Fix TransposeSinking for Gather (#19202)
* Fix TS gather

* enable pytest

* revert auto replaced comment
2023-08-15 16:23:01 +00:00
Sergey Lyalin bf607a1238
Remove `example_output` for `ovc` and `ovc.convert_model` (#19079)
* Removed 'example_output' from ovc and ovc.convert_model, used output for this purpose

* Update tools/ovc/openvino/tools/ovc/convert.py

* Update tools/ovc/openvino/tools/ovc/convert_impl.py

* Reverted mo parts not affected by remove of example_output

* fix PDPD convert_model tests

---------

Co-authored-by: Xiuchuan Zhai <xiuchuan.zhai@intel.com>
2023-08-15 15:14:25 +04: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
Piotr Krzemiński e77070890a
[PT FE] Fix Sporadic Quantized Ops Errors (#18962)
* [PT FE] Fix sporadics with round & 0 zero_pt, 1.0 scale

* [PT FE] Change scale and round input in quantized cat tests

* [PT FE] Add rounding to conv & linear tests

* Update test_quantized_cat.py

* Update test_quantized_cat.py

* [PT FE] Replace randn with rand for consistency in convnd
2023-08-14 15:41:36 +02:00
Ilya Lavrenov 2830b20d73
Removed 'wheel' upper bound in requirements.txt (#19170) 2023-08-14 17:40:25 +04: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
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
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
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
Anastasiia Pnevskaia 6bf75f569c
Fix of tensor names loosing for cf=True flag in MOC transformations. (#19014)
* Added shape and type infer for result nodes in MOC transformations.

* Clang format.

* Added validate_nodes_and_infer_types() pass at the end of MOC pipeline.

* Clang format.

* Added test.

* Clang format.
2023-08-11 15:19:07 +04:00
Maxim Vafin cc08b0091e
[PT FE] Remove torch strides compensation (#19129) 2023-08-11 10:46:04 +02:00
Anastasiia Pnevskaia 59872ee072
Removed InputCutInfo, disabled input cut in OVC. (#18927)
* Fixed output_model logic.

* Removed InputCutInfo, disabled input cut in ovc.

* Disabled output cut, added tests for setting shapes or types for not all inputs.

* Returned support of numpy type.

* Separated MO and OVC python API tests.

* Small corrections.

* Added output dir test, exceptions test.

* Tests fixed.

* Corrected extension param description.

* Corrected input description, minor code corrections.
2023-08-10 23:47:27 +04:00
Maxim Vafin 5f71679fb9
[PT FE] Use weight share switch in frontend (#18993)
* [PT FE] Use weight share switch in frontend

* Return static for function

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

* Fix issue with quantized constants

* Add tests for shared
2023-08-10 19:28:38 +00: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
Stefania Hergane 24f8c4105e
[EISW-89824] [master] Rename VPUX to NPU (#19004)
* Change `VPUX`/`VPU` occurrences to `NPU`

* Switch `HARDWARE_AWARE_IGNORED_PATTERNS` VPU to NPU

* Rename `MYRIAD plugin`

* Rename vpu_patterns to npu_patterns in tools/pot

* Rename vpu.json to npu.json in tools/pot

* Rename restrict_for_vpu to restrict_for_npu in tools/pot

* Change keembayOptimalBatchNum to npuOptimalBatchNum

---------

Co-authored-by: Dan <mircea-aurelian.dan@intel.com>
2023-08-10 00:20:07 +04: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