Commit Graph

777 Commits

Author SHA1 Message Date
Anastasiia Pnevskaia 77711be786
tf.Graph decoder. (#16355)
* tf.Graph decoder.

* Fix conflicts.

* Fixed det_input_node()

* Added support of non-frozen models.

* Cleaned code.

* Small fix.

* Small corrections.

* Error fixes.

* Code style.

* Code style.

* Code style.

* Small correction.

* Fixed float32 attributes.

* Small correction.

* Fixed tests.

* Fixed errors.

* Added statefull partitioned call test.

* Import fix.

* Code corrections.

* BOM test fixed.

* Corrected check, added comment.

* Added checks.

* Supported TF Fraph Iterator in load_by_model().

* Clang format.

* Small correction.

* Fixed example_input logic, added tests.

* Added comment.

* Small correction.

* Corrected example_input description.

* Moved load_by_model test to MO Python API tests.

* Minor corrections.

* Code corrections.

* Small correction.

* Clang format.

* Fixed tests.

* Import change.

* Moved GraphIterator to common FE.

* Tests refactoring, minor fixes.

* Small test correction.

* Removed not needed change.

* Removed commented code.

* Removed not needed change.

* Unit tests fix.

* Temporarily added debug output.

* Test fix.

* Applied comments.

* Fixed test.
2023-06-13 16:04:26 +04:00
jszczepa af9204488d
Fuzzer import model (#17865)
* Fuzzer - import_model

* Fix after review part 1

* Replace c-like cast to static_cast operator

* Replace c-like cast with reinterpret_cast
2023-06-13 13:41:30 +02:00
Maxim Vafin 48dec1000e
[PT FE] Support inplace operations on aliases of tensors (#17856)
* Support operations on aliases of tensors

* Add tests

* Fix issue with convnd

* Fix code style

* Fix issue with tensor index of mutated tensor

* Fix if types alignment

* Fix issues in keypoint detectron2

* Fix issue with masks in detectron2

* Fix acuracy issue in mobilevitv2 models

* Remove unused includes

* Return upsample case in lictconstruct replacer

* Fix types, apply review feedback

* Apply feedback

* Revert change of not using shared_from_this for getitem

* Fix issue in prim::device transformation

* Fix layer tests

* Apply review feedback

* Fix issue with not existing alias to tensor
2023-06-13 13:30:48 +02:00
Evgenya Stepyreva dd02a0f440
[TFLite] Custom attribute reading and While operation support (#17932)
* Custom attribute reading and While operation support

* Rearanges FLATBUFFERS_LOCALE_INDEPENDENT setting

* Style

* Make flatbuffers code as version independent as possible

* Comments addressed
2023-06-12 14:42:18 +04:00
Piotr Krzemiński 0d9109acf3
[PT FE] Add aten::_shape_as_tensor (#17804)
* [PT FE] Add aten::_shape_as_tensor impl

* Update shape_as_tensor.cpp

* [PT FE] Fix headers, add explicit type, comment out shape detection

* [PT FE] Reverse example comments
2023-06-05 10:59:12 +02:00
Piotr Krzemiński 3d8a620ac3
[PT FE] Add aten::_native_multi_head_attention (#17550)
* [PT FE] Add implementation of MHA

* [PT FE] Add tests, add scaled dot product attention

* [PT FE] Fix missing transpose for Q,K,V & output Attention

* [PT FE] Formatting errors

* [PT FE] Fix testing class with nn.Linear

* [PT FE] Fix incorrect key franspose in dot product attention computation

* [PT FE] Fix incorrect matmul due to lack of transpose

* [PT FE] Enable support for all boolean masks

* [PT FE] Fix returned weights

* [PT FE] Remove debugging artifacts

* [PT FE] Remove unused nodes, optimize transpose nodes' usage, add comments to floating masks

* [PT FE] Further reduce node usage, return None instead of 0 for return_weights=false

* [PT FE] Allow for dynamic num_num_head, embed_dim

* [PT FE] Improve error comment, remove unnecessary Unsqueeze

* [PT FE] Clang format

* Update tests/layer_tests/pytorch_tests/test_native_multi_head_attention.py

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

* [PT FE] Add masks comments, improve mask broadcasting

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-06-05 10:55:03 +02:00
Piotr Krzemiński 482c030408
[PT FE] Add aten::LogSoftmax (#17629)
* [PT FE] Add aten::LogSoftmax implementation & tests

* Update log_softmax.cpp

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

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

* [PT FE] Add recommended comment, replace get_input_tensor with new implementation

* [PT FE] Align to f32 if no dtype provided

* [PT FE] Revert type align

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-06-01 12:04:27 +00:00
Mateusz Mikolajczyk e45068bd64
[PT FE] Fix aten::squeeze translation + add tests for aten::slice (#17584)
* Fix squeeze compatibility

* Fix issue in remainder causing model to fail

* Add tests for slice

* Modify remainder to support int + add type tests

* Apply requested changes

* Add comment
2023-05-31 22:26:39 +02:00
OK f2017e8c2e
Validation: Test AUTO plugin timetests (#17508)
* Validation: Test AUTO plugin

* config

* Add debug logs against AUTO

* Iteration

* iteration

* iteration

* iteration

* iter

* iteration

* iteration

* iteration

* iteration

---------

Co-authored-by: Daria Ilina <daria.ilina@intel.com>
2023-05-31 15:38:57 +02:00
Ekaterina Aidova fb4efe7203
[PT FE]: support flip operation (#17705)
* [PT FE]: support flip operation

* more tests
2023-05-31 12:07:24 +02:00
Ekaterina Aidova 2d7db5e3d3
[PT FE]: support aten::cdist and aten::pairwise_distance (#17718)
* [PT FE]: support aten::cdist and aten::pairwise_distance

* p and eps non-const
2023-05-31 12:07:12 +02:00
Mateusz Tabaka 6f7e9cd786
Update docs for frontend extensions (#16752)
* Update docs for frontend extensions

* Apply suggestions from code review

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

* fix order in openvino_framework_map

* no discard return value

* add note of openvino_contrib repo

* update example for PT

* note

* add paragraph of named inputs and outputs

Signed-off-by: Mateusz Tabaka <mateusz.tabaka@intel.com>

* title underline too short

* review comments

* remove m_ prefix from CustomOp attr names

---------

Signed-off-by: Mateusz Tabaka <mateusz.tabaka@intel.com>
Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-05-30 12:53:59 +04:00
Mateusz Mikolajczyk a1a753bb03
[PT FE] Add translation for aten::__range_length and aten::__derive_index (#17618)
* Add operators and tests

* Fix op kind

* Merge tests

* Fix freeze issue as separate bug

* Fix indent

* Fix print placement

* Fix dtype
2023-05-29 13:34:08 +00:00
Ruslan Nugmanov 28d2e77a92
TFLite layer tests second part (#17688)
* tfl - removes redundant params

* tfl - batch matmul

* tfl - expand_dims

* tfl - squeeze

* tfl - hardswish

* tfl - batch matmul

* tfl - padv2

* tfl - fixes for dynamic shapes

* tfl - where

* tfl - zeros_like

* tfl - zeros_like

* tfl - precommit fix

* tfl - shape and xfail for expand dims
2023-05-29 15:50:34 +04:00
Ekaterina Aidova 3300543eac
[PT FE]: support frobenius norm and fix aten::norm (#17701)
* [PT FE]: support frobenius norm and fix aten::norm

* fix code style
2023-05-29 11:14:16 +04:00
Mateusz Mikolajczyk 6501d963fc
Add aten::item (#17730) 2023-05-26 18:05:24 +02:00
Ekaterina Aidova b2aaa10ef6
[PT FE]: support aten::unflatten (#17736)
* [PT FE]: support aten::unflatten

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

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

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-05-26 15:27:05 +00:00
Ekaterina Aidova 307b666d99
[PT FE]: support boolean data type in sum operation (#17715) 2023-05-26 15:44:50 +04:00
Przemyslaw Wysocki 60d55729aa
Bump (#17686) 2023-05-24 00:53:03 +04:00
dependabot[bot] e2cb6dafe1
Bump pytest-html from 1.19.0 to 3.2.0 in /tests (#16624)
Bumps [pytest-html](https://github.com/pytest-dev/pytest-html) from 1.19.0 to 3.2.0.
- [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/v1.19.0...v3.2.0)

---
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>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-05-23 11:22:59 +00:00
dependabot[bot] added5c44e
Bump attrs from 22.2.0 to 23.1.0 in /tests (#17649)
Bumps [attrs](https://github.com/python-attrs/attrs) from 22.2.0 to 23.1.0.
- [Release notes](https://github.com/python-attrs/attrs/releases)
- [Changelog](https://github.com/python-attrs/attrs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/python-attrs/attrs/compare/22.2.0...23.1.0)

---
updated-dependencies:
- dependency-name: attrs
  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-05-22 09:52:28 +00:00
Maxim Vafin fe1ac700f0
[PT FE] Fix issues in multiple operations (#17418)
* Fix issues in aten::chunk and aten::split_with_sizes replacers

* Fix code style

* Fix compute issue

* Fix code style

* Support 1 chunk

* Fix issues in meshgrid, sqrt, rsqrt and exp operations

* Use Interpolate-11

* Fix unary ops

* Add tests for unary ops

* Fix unary ops tests

* Add changes in utils

* Fix mo test

* Remove extra line

* Fix mo tests for int
2023-05-22 10:35:34 +02:00
Mateusz Mikolajczyk 9b52a77531
[PT FE] Fix aten::conv2d conversion issues related to bias (#17228)
* Allow for conversion

* Check for const

* Apply requested changes

* Improve tests
2023-05-22 09:59:02 +02:00
dependabot[bot] 4ccc6e3034
Update pytest requirement from <7.3,>=5.0 to >=5.0,<7.4 in /tests (#17641)
Updates the requirements on [pytest](https://github.com/pytest-dev/pytest) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.0.0...7.3.1)

---
updated-dependencies:
- dependency-name: pytest
  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-05-22 10:19:00 +04:00
Xiuchuan Zhai 0b72998631
[MO][PDPD] Convert Paddle models from memory (#17005)
* support convert_model in paddle runtime

* add convert runtime paddle test

* fix a pylint error

* fix ci error

* skip test_mo_convert_paddle.py # Ticket: 95904

* auto remove tmp file

* add docs for PDFE

* enable paddle mo test in ci

* fix docs

* fix docs

* fix the docs
2023-05-20 18:13:21 +04:00
dependabot[bot] f2e71cbd0a
Update fastjsonschema requirement from ~=2.15.1 to ~=2.16.3 in /tests (#16623)
Updates the requirements on [fastjsonschema](https://github.com/horejsek/python-fastjsonschema) to permit the latest version.
- [Release notes](https://github.com/horejsek/python-fastjsonschema/releases)
- [Changelog](https://github.com/horejsek/python-fastjsonschema/blob/master/CHANGELOG.txt)
- [Commits](https://github.com/horejsek/python-fastjsonschema/compare/v2.15.1...v2.16.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-05-20 00:15:36 +04:00
Ekaterina Aidova dcd034fb4d
[PT FE]: support aten::argmax and aten::argmin (#17489) 2023-05-19 15:55:36 +00:00
dependabot[bot] 50957cdddf
Bump pytest-timeout from 2.0.1 to 2.1.0 in /tests (#16750)
Bumps [pytest-timeout](https://github.com/pytest-dev/pytest-timeout) from 2.0.1 to 2.1.0.
- [Release notes](https://github.com/pytest-dev/pytest-timeout/releases)
- [Commits](https://github.com/pytest-dev/pytest-timeout/compare/2.0.1...2.1.0)

---
updated-dependencies:
- dependency-name: pytest-timeout
  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>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-05-19 13:30:37 +00:00
Ilya Lavrenov 84db7d0ee6
Build using conanfile.txt (#17580)
* Build using conanfile.txt

* Update .ci/azure/linux_arm64.yml

* Several improvements

* Removed conanfile.py

* Try to use activate / deactivate

* Fixed clang-format code style

* Supported TBB version from Conan

* Added more NOMINMAX

* Fixed static build

* More improvements for static build

* Add usage of static snappy in case of static build

* More fixes

* Small fixes

* Final fixes
2023-05-19 14:01:39 +04:00
Surya Siddharth Pemmaraju e14d1b2a07
Torchscript backend (#17132)
* Added torch script backend

* Added ts_backend to pytorch layer tests

* Added use_ts_backend fixture to the test suite to activate the
torchscript backend

* Fixed failing test_dict layer test

* Added USE_TS_BACKEND as an env variable

* Removed use_ts_backend fixture

* Added more tests for ts backend

* Added more information in the comments about usage

* Removed convolution3d test from precommit_ts_backend

* Added some torchscript backend tests to ci

* Removed tests from CI as torch.compile doesn't support 3.11 currently

* Fixed linter issues

* Addressed PR comments and linter issues
2023-05-17 14:58:38 +02:00
Maxim Vafin db58355fad
Remove posibility to export to onnx (#17442)
* Remove posibility to export to onnx

* Add OOB pytorch convert_model test
2023-05-17 13:39:35 +02:00
Anastasia Kuporosova 75fa11c80f
[PyOV] Remove deprecated (#17512)
* [PyOV] Remove deprecated

* remove deprecated api

* remove tests

* update pot
2023-05-16 21:48:39 +02:00
Ruslan Nugmanov aa932d341a
Layer test tflite (#17410)
* tfl argvalue test

* tfl add_n test

* tfl batch to space and space to batch

* tfl batch to space and space to batch

* tfl broadcast

* tfl avgpool

* tfl concat

* tfl conv2d and depthtospace

* tfl depthwise_conv2d

* tfl broadcast_args

* tfl fill

* tfl floordiv

* tfl fully_connected

* tfl fully_connected

* tfl gather

* tfl gather_nd

* tfl l2_normalization

* tfl matrix_diag

* tfl maxpool2d

* tfl mirror_pad

* tfl one_hot

* tfl pack

* tfl pad

* tfl range

* tfl relu

* tfl reshape

* tfl resize_bilinear

* tfl resize

* tfl reverse

* tfl tfft2d

* tfl scatter_nd

* tfl rfft2d fix

* tfl segment_sum

* tfl select

* tfl select_v2

* tfl slice

* tfl space_to_depth

* tfl split

* tfl split_v

* tfl strided_slice

* tfl tile

* tfl topk_v2

* tfl transpose

* tfl transpose_conv

* tfl fix conv tests

* tfl unique + refactoring

* tfl unpack

* refactoring

* tfl review - reformat params

* tfl review - fixes

* tfl review - fixes

* tfl review - xfails

* tfl review - remove redundant tickets

* tfl review - xfail for pad
2023-05-15 15:03:09 +04:00
Ekaterina Aidova 66e1af18b5
[Pt FE]: aten::embedding_bag (#17098)
* [Pt FE]: aten::embedding_bag

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

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

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-05-10 09:44:08 +02:00
Maxim Vafin 48604e9092
Support sizes input as list to upsample ops (#17350) 2023-05-07 19:23:51 +02:00
Roman Kazantsev b6098fed90
[TF FE] Provide single tensor names for inputs and outputs in SavedModel (#17370)
* [TF FE] Provide single tensor names for inputs and outputs in SavedModel

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

* Fix build issue

* Xfail some cases due to internal problems in TF

* Xfail other layer test

* Extend documentation for function to adjust tensor names

* Use old path of tf2 layer testing for legacy frontend

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-05-06 05:37:47 +01:00
Maxim Vafin c1933fcaf0
[PT FE] Support default strides for avg and max pooling (#17337)
* Support default strides for avg and max pooling

* Fix code style

* Remove changes from other ticket
2023-05-04 09:27:10 +02:00
Maxim Vafin 1d59dab362
[PT FE] Improve exception when decoder cannot trace or script the model (#17338)
* [PT FE] Improve exception when decoder cannot trace or script the model

* Add exception in convert_model

* Add test
2023-05-04 07:58:40 +02:00
Piotr Krzemiński 1c286e4636
[PT FE] Add aten::all implementation (#16901)
* [PT FE] aten::all implementation with tests

* [PT FE] Add non-dynamic type check

* [PT FE] Update tests, temporarily turn off uint8 tests

* [PT FE] Fix dtype for uint8

* [PT FE] Apply suggested optimizations

---------

Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
2023-05-02 21:12:12 +02:00
Maxim Vafin 89d3eaa67f
Fix issue with Pow when both inputs are scalars (#17305)
* Fix issue with Pow when both inputs are scalars

* Fix code style
2023-05-02 16:49:42 +02:00
Roman Kazantsev 14e146b7c8
[TF FE] Extend pre-commit for SpaceToBatch after CPU crash (#17278)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-05-01 17:29:50 +04:00
Piotr Krzemiński b7311d8907
[PT FE] Fix aten::chunk for dynamic shapes (#16902)
* [PT FE] Add replacer for chunk+getitem

* [PT FE] Fix missing replaced nodes, fix incorrent chunk size calculation

* [PT FE] Fix incorrect item shape, reduce tests count

* [PT FE] Convert back with frontend

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-05-01 09:32:10 +00:00
Maxim Vafin 1d443c6da6
Fix problems with pytorch models passed to convert_model (#17255)
* Do eval() only for torch Module

* Add test

* Support decoder in convert_model

* Enable tests
2023-04-27 18:33:46 +04:00
Anastasiia Pnevskaia 59e28f8d0d
Disabled tests. (#17231) 2023-04-27 13:39:58 +04:00
Maxim Vafin 10392644e3
[PT FE] Enable stable sort layer tests (#17229)
* [PT FE] Enable stable sort layer tests

* Remove unused code
2023-04-26 18:24:38 +02:00
Ekaterina Aidova 82ff7e17c9
use input parameter for building example_inputs (#17207)
* use input parameter for building example_inputs

* Update tools/mo/openvino/tools/mo/moc_frontend/pytorch_frontend_utils.py
2023-04-26 17:58:06 +04:00
Nikolay Shchegolev c8ac7c9b82
[CPU] Infer_request crashes for SpaceToBatch operation. (#16974)
* [CPU] Infer_request crashes for SpaceToBatch operation.

* Fixes as per comments.

* Fixes as per comments 2.
2023-04-26 17:39:54 +04:00
Ekaterina Aidova 6389f423bf
[PT FE]: implement scaled dot product attention (#17178)
* [PT FE]: implement scaled dot product attention

* Apply suggestions from code review

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

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

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

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-04-26 12:51:02 +04:00
Mateusz Tabaka dfaa4e7bd6
Add ConvertSubtractWithConstant to MOCTransformations (#17058)
* Add ConvertSubtractWithConstant to MOCTransformations

Ticket: CVS-62419

* fix test_mo_import_from_memory tests

* move test file

---------

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-04-26 11:37:42 +04:00
Ekaterina Aidova 39ed9a624f
[PT FE]: extend batch norm to support training mode (#17040) 2023-04-25 11:27:00 +02:00
Katarzyna Mitrus 0617ce9089
Set ONNX opset in Reduce ops layer tests (#17170) 2023-04-25 10:38:56 +02:00
Anastasiia Pnevskaia 00847cba7d
Fix of tf.GenericFunction conversion in convert_model() (#17125)
* Added GenericFunction support, fixed tf.Function test.

* Added test, added TF version checks.

* Small correction

* Removed Trackable type support.

* Small correction.
2023-04-24 22:57:56 +00:00
Piotr Krzemiński 22a81e0e58
[PT FE] Enable stable tests for sort & argsort (#16415)
* [PT FE] Enable stable tests for sort & argsort

* Update test_argsort.py

* [PT FE] Update to opset11

* [PT FE] Remove redundant argument from argsort test

---------

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-04-25 01:21:16 +04:00
Mateusz Mikolajczyk 8e5b0650a0
[PT FE] Fix for prim::Constant optional or containing list of tensors (#16754)
* Fix Constant list of tensor

* Write TorchScript transformation

* Handle Optional Tensor Constants

* Improve tests

* Add comments

* Try fix flake
2023-04-24 22:56:42 +02:00
Anastasiia Pnevskaia 5026aa044a
Removed naming of inputs in MO Python API PyTorch tests. (#17070)
* Removed naming of inputs in MO Python API PyTorch tests.

* Fixed coping of data.

* Small correction.

* Small correction.

* Small fix.
2023-04-20 11:49:45 +04:00
Roman Kazantsev e93c8e1b1c
[TF FE] Skip one Keras ConvLSTM2D test (#17028)
* [TF FE] Mark one Keras ConvLSTM2D test with xfail

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

* Change to skip

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-04-18 22:28:30 +04:00
Roman Kazantsev ae06322cb7
[TF FE] Correct layer test for ConvLSTM2D and add to the pre-commit (#16996) 2023-04-17 17:54:19 +00:00
Anastasiia Pnevskaia dc2fa65224
Support of unnamed saved_model_dir in MO Python API (#16542)
* Added support of unnamed saved_model_dir.

* Switch TF2 layer tests for unnamed saved_model_dir.

* Added test.

* Correction of comment.

* Removed unnecessary pytest mark.

* Code correction, added comment.
2023-04-17 17:20:27 +04:00
Przemyslaw Wysocki d72d833a96
[PyOV] Enable Python 3.11 (#15144)
* Bump ONNX version

* Bump protobuf

* Add xfails and skips

* Add tickets

* Skip ONNX Serialization tests

* Compile ONNX with C++17

* Force cpp17 - 2

* Use MSVC check

* Relax python reqs, enable 311 in azure

* Fix setupvars error

* Ignore watchdog error

* Update tensorflow

* Minor change

* Bump onnx to 1.13.1

* Bump protobuf to 3.20.3

* Debug test tf

* Xfail tests in comp

* Update comp tests

* Update tf reqs

* Remove deprecated ONNX function

* Align PDPD FE protobuf req with 2.4.1

* Satisfy dependency review

* Attempt to fix dependency review

* Revert pdpd protobuf

* Skip pdpd tests

* Fix MO-TF-PB test

* Skip TF test case

* Enable py311 on rest of jobs

* Try disabling pdpd req

* Exclude pdpd form cmake

* Update .ci/azure/linux.yml

Fixed unmerged merge-conflict

* CR

* Fix reqs

* Skip pdpd tests

* Disable pdpd tests building in cmake

* Skip another pdpd cmake

* Add file

* Add paddle constraint to tests

* Disable paddle reqs

* Debug prints

* Skip TF test if Python ver is 3.11

* Apply Mish cr comments

* Debug

* Debug

* Constrain tensorflow_addons

* Fix pdpd skipping

* Add debug prints

* Update skips

* Remove prints

* Minor change

* Update OMZ commit

* Fix some tests

* Minor change

* Disable pdpd at all

* Disable pdpd at all

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-04-17 13:30:17 +04:00
Roman Kazantsev 18da874c57
[MO] Remove use of mapping file and its generation (#16944)
* [MO] Remove use of mapping file and its generation

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

* Fix pylinter findings

* Remove usage of mapping file in the layer tests

* Fixing layer tests for legacy frontend

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-04-15 10:38:33 +00:00
Anastasiia Pnevskaia 24c9d95779
Support of unnamed input for MO Python API. (#16373)
* Support of unnamed input for MO Python API.

* Code correction, tests fix.

* Small fix.

* Added tests for unnamed input, code fixes.

* Small code correction.

* Removed code comment.

* Added tests, fixed bugs.

* Minor corrections, added comments.

* Code refactoring.

* Added defaults for InputCutInfo.

* Fixed error.

* Small fixes.

* Removed wrong change.

* Fixed error.

* Corrected input description.
2023-04-14 19:37:46 +04:00
Pavel Esir 68f46ff9a1
[MO] compress_to_fp16=False by default (#16854)
* compress_to_fp16=False by default

* Apply suggestions from code review

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>

* note abound RAM consumption for FP16 compressed models

* detailed notion about RAM usage

* update 'get_compression_message()'

* corrected get_compression_message: remove infor about RAM

* fix pytorch convert layer tests

---------

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2023-04-14 01:16:41 +00:00
Maxim Vafin 25015f9790
[PT FE] Support prim::DictConstruct on the output (#16894)
* Support dict on the output

* Preserve output order
2023-04-13 16:42:17 +00:00
Przemyslaw Wysocki 69d6ef33fc
[PyOV] Align and bump numpy, further tidy up requirements (#16652)
* Align numpy

* Simplify the rest

* Minor change

* Minor change

* Restart CI

* Update paddle reqs
2023-04-12 13:14:38 +04:00
Ekaterina Aidova ca2265395d
[PT FE]: fix aten::mean behaviour for provided dtype (#16790) 2023-04-11 14:29:29 +04:00
Ekaterina Aidova d41663694c
[PT FE]: aten::gather (#16784)
* [PT FE]: aten::gather

* add detach and sign
2023-04-11 14:28:05 +04:00
Ekaterina Aidova d407bc1b3b
[PT FE] fix invalid reshape shape after aten::index (#16821)
* [PT FE] fix invalid reshape shape after aten::index

* support aten::index_select
2023-04-11 12:41:59 +03:00
Roman Kazantsev f36ee94b4b
[TF FE] Correct SpaceToBatch layer test (#16823)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-04-10 14:41:02 +04:00
Anastasiia Pnevskaia 4098434233
Parameter list and descriptions for mo.convert_model() method in docstring (#16459)
* Added convert_model() params docs.

* Added auto-generating of most cli params.

* Added auto-generating of cli params.

* Small correction.

* Removed wrong change.

* Corrected default values.

* Fixed errors, added tests.

* Small correction.

* Corrected params descriptions, moved cli specific params to separate file.

* Moved params specifics to utils/help.py.
2023-04-05 14:48:13 +04:00
Ekaterina Aidova 837f5a7d53
[PT FE]: fix aten::index inconsistent reshape (#16741)
* [PT FE]:  fix aten::index inconsistent reshape

* add index name, return false

* Update src/frontends/pytorch/src/transforms/aten_index_replacer.cpp
2023-04-05 10:44:25 +02:00
Bogdan Pereanu 73ab0dd065
Fixing run_timest python script for input and output precision (#16661)
* Fixing run_timest python script for input and output precision

* Update code according to the PR review

* Update run_timetest according to the last review

* Add input_precision and output_precision to test_timetest as well

* Set input/output precision per model
2023-04-05 12:16:27 +04:00
Roman Kazantsev c034975183
[TF FE] Fix layer tests for BatchToSpace and add to the pre-commit (#16722)
* [TF FE] Fix layer tests for BatchToSpace and add to the pre-commit

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

* Specify type for batch_shape

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-04-04 18:46:12 +04:00
Mateusz Bencer d4b394c1b6
Skip Reduce* ops layer tests due to ORT error (#16730)
* skip reduce mean

* skip other reduce ops
2023-04-04 14:50:34 +02:00
Roman Kazantsev f4fca2d578
[TF FE] Activate TopK layer test with the second output in the pre-commit (#16691)
* [TF FE] Test the second output for TopK operation

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

* Switch off no sorted case

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-04-03 11:38:27 +04:00
Roman Kazantsev 9a5a8f6abc
[TF FE] Move to TopK-11 operation and update downgrading TopK transformation (#16590)
* [TF FE] Move to TopK-11 operation

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

* Update downgrading transformation

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-03-31 17:44:58 +02:00
dependabot[bot] c33a3f87f0
Bump attrs from 22.1.0 to 22.2.0 in /tests (#16676)
Bumps [attrs](https://github.com/python-attrs/attrs) from 22.1.0 to 22.2.0.
- [Release notes](https://github.com/python-attrs/attrs/releases)
- [Changelog](https://github.com/python-attrs/attrs/blob/main/CHANGELOG.md)
- [Commits](https://github.com/python-attrs/attrs/compare/22.1.0...22.2.0)

---
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>
2023-03-31 11:35:38 +00:00
Pavel Esir 6d064d26cb
remove deprecated MO args (#16626)
Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-03-31 12:28:04 +04:00
Ilya Churaev 1b9bd61767
Added constructor from string for element Type (#16643)
* Added constructor from string for element Type

* Fixed code style

* Removed WA for tests
2023-03-31 07:24:32 +00:00
dependabot[bot] 5e149aa0dd
Bump test-generator from 0.1.1 to 0.1.2 in /tests (#16625)
Bumps [test-generator](https://github.com/kevinastone/generator) from 0.1.1 to 0.1.2.
- [Release notes](https://github.com/kevinastone/generator/releases)
- [Changelog](https://github.com/kevinastone/generator/blob/master/HISTORY.rst)
- [Commits](https://github.com/kevinastone/generator/compare/v0.1.1...v0.1.2)

---
updated-dependencies:
- dependency-name: test-generator
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-03-30 16:58:02 +00:00
Bogdan Pereanu 5eea99d96c
Update timetest tool to support ip and op params config (#15916)
* User can set input and output precision for timetest tool

* Update run_timetest.py with the ip and op options as well

* Use only one getType function

* Add extra line at the end of the file

* Remove unused parameters

* Update comment accordingly

---------

Co-authored-by: Vitaliy Urusovskij <vitaliy.urusovskij@intel.com>
2023-03-30 11:27:51 +04:00
Roman Kazantsev 0c2308506f
[TF FE] Fix leftovers from review (#16619)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-03-29 16:28:37 +04:00
Przemyslaw Wysocki 591c3e61c5
[PyOV] Simplify requirement files (#15343)
* Partial progress

* Finish v1

* Cleanup

* Remove useless files

* Fix path to pdpd

* Fix onnx path

* Minor change

* Rework MO

* Minor change

* Remove some costraints

* Add MO constraints

* Update gitignore for MO

* Minor change

* Apply tech sync discussion

* Cleanup

* CR comment

* Debug ONNX FE

* simplify ONNX FE

* Update cmake

* Hardcode ONNX requirement

* Add dependency resolver to cmake

* Add constraints for openvino/tests

* Add missing pytest-html

* Fix -c path

* Revert debug changes to path

* Add cmake to copy constraints.txt

* Update dependabot

* Remove slash

* Remove cmake

* Debug prints

* Minor changes

* Move reqs check to separate file

* Add requirements parser to benchmark_tool

* Fix smoke tests constraints

* Minor fixes

* Minor change

* My fixes were apparently wrong

* Debug - self.executable_path

* Debug - add singledispatch to tests and tools

* Debug - print IE_APP_PATHs

* Revert "Debug - print IE_APP_PATHs"

This reverts commit 67ccb6d3f5.

* Revert "Debug - add singledispatch to tests and tools"

This reverts commit 3b945931e2.

* Revert "Debug - self.executable_path"

This reverts commit 3aa724eff6.

* update dependabot

* update dependabot

* Skip benchmark_app tests

* Use CMAKE_CURRENT_BINARY_DIR in cmake

* Remove debug prints

* minor change

---------

Signed-off-by: p-wysocki <przemyslaw.wysocki@intel.com>
2023-03-29 14:27:27 +04:00
Mateusz Tabaka 556d469f6b
[PADDLE] add paddle opextension support (#16439)
* add opextension support

* support opconversion

* fix test contructor ambiguous

* fix ci fail

* add tag to avoid compiler ambiguous

* move tests to layer_tests & remove PaddleTag

* static cast

* use create_ov_node_by_name

---------

Co-authored-by: Luo Cheng <cheng.luo@intel.com>
2023-03-29 12:23:47 +04:00
Mateusz Tabaka b82bedd648
Add Conversion and Op Extension to Pytorch frontend (#16434)
Tickets: 98766 and 98767
2023-03-29 00:25:29 +02:00
Maxim Vafin 8d90c11a35
Fix sporadic fails when beta==0 in baddmm (#16610)
* Fix sporadic fails when beta==0 in baddmm

* Remove sporadic test loop
2023-03-28 18:47:35 +00:00
Roman Kazantsev 17c3e67336
[TF FE] Add layer test for Mish activation function (#16557)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-03-28 18:43:11 +02:00
Ekaterina Aidova 6fc0b6479e
[PT FE]: revert usage mo.convert_model in pt layer tests (#16573)
* [PT FE]: revert usage mo.convert_model in tests

* fix failed test
2023-03-28 16:06:21 +04:00
Piotr Krzemiński 6b70c449ba
[PT FE] Add aten::Chunk implementation (#16035)
* [PT FE] Add chunk implementation:

* [PT FE] Fix chunk int64 instead of const node errors, add tests for chunking

* [PT FE] Test Chunk-If implementation

* [PT FE] Change the translate to replace chunk implementation, use VariadicSplit instead of Slice

* [PT FE] Reduce artifacts from debugging

* Update test_chunk.py

* [PT FE] Improve & debug chunk implementation:

* [PT FE] Simplify implementation, fix remaining bugs

* [PT FE] Statify the split lenghts output

* [PT FE] Clear code, remove debugging artifacts
2023-03-27 11:16:16 +02:00
Mateusz Mikolajczyk 7d16ee1835
[PT FE] Add torchvision::deform_conv2d translation (#16450)
* Initial commit

* Initial commit

* Cleanup

* Improve tests

* Make NodeContext const
2023-03-27 11:13:32 +02:00
Roman Kazantsev bb9de29062
[TF FE] Add layer test for Bucketize (#16556)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-03-27 12:03:07 +04:00
Ilya Lavrenov 3f3bda592b
Revert "[MO] remove deprecated: data_type, disable_nhwc_to_nchw, tensorflow_use_custom_operations_config (#16394)" (#16555)
This reverts commit 43ef89e625.
2023-03-27 09:04:41 +04:00
Pavel Esir 43ef89e625
[MO] remove deprecated: data_type, disable_nhwc_to_nchw, tensorflow_use_custom_operations_config (#16394)
* removed deprecated MO options: data_type, disable_nhwc_to_nchw, tensorflow_use_custom_operations_config

* fix layer_test_class.py

* data_type -> precision in layer_test_class.py

* typo fix

* corrected layer tests for compress_to_fp16 argument
2023-03-26 21:38:15 +04:00
Ekaterina Aidova 1ef94ec069
[PT FE]: support aten::linalng_vector_norm (#16109)
* [PT FE]: support aten::linalng_vector_norm

* more norm ops

* update tests
2023-03-24 21:00:17 +01:00
Ekaterina Aidova 179403ddc9
[PT FE]: improve integration into mo.convert_model (#16243) 2023-03-24 16:55:07 +01:00
Maxim Vafin 86c4489aca
[PT FE] Add telemetry extension support (#16438)
* Initial telemetry introduction in PyTorch frontend

* Add test

* remove obsolete checks from test

* Move statistics gathering into TranslateSession

* Fix code style

* Fix codestyle
2023-03-24 10:11:12 +01:00
Maxim Vafin abaf61d059
Improve detectron2 support (#16011)
* Improve op support for detectron mask rcnn

* Initial commit

* Fix for reading processed list

* Format code

* Cleanup

* cleanup

* Cleanup

* cleanup test

* Add comment

* Add rt_info

* fix type

* More fixes for detectron

* Fix build

* Add tests for if

* Revert changes in index

* Add comment

* Fix test

* Fix get_axes_range

* Add tests and fix if type alignment

* Fix code style

---------

Co-authored-by: Mateusz <mateusz.mikolajczyk@intel.com>
2023-03-23 22:30:03 +00:00
Przemyslaw Wysocki 52b27d82c5
Upgrade `ONNX` to 1.13, `protobuf` to 3.20.3 and relax `tensorflow` (#14773)
* Bump ONNX version

* Bump protobuf

* Add xfails and skips

* Add tickets

* Skip ONNX Serialization tests

* Compile ONNX with C++17

* Force cpp17 - 2

* Use MSVC check

* Update tensorflow

* Minor change

* Bump onnx to 1.13.1

* Bump protobuf to 3.20.3

* Debug test tf

* Xfail tests in comp

* Update comp tests

* Update tf reqs

* Remove deprecated ONNX function

* Align PDPD FE protobuf req with 2.4.1

* Satisfy dependency review

* Attempt to fix dependency review

* Revert pdpd protobuf

* Skip pdpd tests

* Fix MO-TF-PB test

* Skip TF test case

* Add ticket numbers, rewrite reqs

* Fix requirements

* Minor change

* Set TF to 2.12

* Remove wrapt and skip test
2023-03-24 00:43:01 +04:00
Roman Kazantsev 5cb20f8858
[TF FE] Refactor StridedSlice translator and add layer test to precommit (#16376)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-03-21 08:54:48 +04:00
Ekaterina Aidova 71167df234
[PT FE]: enable dtype in softmax and constant filling, extend logical ops support (#16276) 2023-03-20 14:12:12 +00:00
Ekaterina Aidova f39684a7f8
[PT FE]: support mixed precision in floor divide (#16362)
* [PT FE]: support mixed precision in floor divide

* Update floordiv.cpp
2023-03-20 11:00:26 +01:00
Mateusz Mikolajczyk 134ebb8889
[PT FE] Add aten::new_empty (#16312)
* Add new_empty

* Remove duplicated code for new_empty
2023-03-20 10:03:33 +01:00
Roman Kazantsev 3f06a9b6fb
[TF FE] Test MatrixDiag translator in the pre-commit (#16377)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-03-20 12:20:13 +04:00
Georgy Krivoruchko 36c18e29a8
[TF FE] Added Tensorflow CTCLoss layer test (#13644)
Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-03-15 08:18:29 +00:00
Daria Ilina e4f44b19fd
Mark all failed ONNX layer tests as skip (#16188)
* Mark all failed ONNX layer tests as XFail

* Add additional xfailed marks

* Add one more failed tests into XFail

* Add conditions for CPU/GPU failures

* Revert "Add conditions for CPU/GPU failures"

This reverts commit 790524c59c.

* Add failures separation for CPU/GPU

* Replace all xfail with skip
2023-03-15 12:22:32 +06:00
Roman Kazantsev dcc8a36d88
[TF FE] Test Switch and Merge support by TF FE (#16255) 2023-03-14 00:50:47 +04:00
Roman Kazantsev 3b71286f1d
[TF FE] Test low-level While support by TF FE (#16257) 2023-03-14 00:50:22 +04:00
Maxim Vafin ec8a4abf6d
Support more complicated cases of list concatenation (#16139)
* Support more complicated cases of list concatenation

* Fix codestyle

* Add tests
2023-03-10 07:51:10 +01:00
Mateusz Mikolajczyk 31489931cf
[PT FE] Fix failing translation of aten::index_put_ (#16140)
* Initial commit

* Fix for reading processed list

* Format code

* Cleanup

* cleanup

* Cleanup

* cleanup test

* Add comment

* Add rt_info

* fix type

* Update src/frontends/pytorch/src/transforms/aten_index_put_replacer.cpp

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

---------

Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-03-09 20:14:58 +00:00
Ekaterina Aidova 6514b7600a
[PT FE]: add translation for aten::cumsum (#16092)
* [PT FE]: add translation for aten::cumsum

* handle out and prim::dtype
2023-03-08 11:07:29 +01:00
Mateusz Mikolajczyk b907bfab3b
[PT FE] Fix for prim::Constant tensor with int/float values (#16029)
* Fix constant

* Change

* Remove duplicated code

* Add tests
2023-03-07 20:54:18 +00:00
Mateusz Mikolajczyk 6358974c1a
[PT FE] Add prim::PythonOp (#15714)
* Add PythonOp

* Fix deprecation & cleanup

* Apply suggestions from code review

* Fix dtype

* Apply suggestions from code review

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

* Update to new tensor names handling

* Fix negation

* Apply changes from code review

* Remove unnecesary imports

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

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

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-03-07 17:20:13 +01:00
Maxim Vafin 82584543ba
[PT FE] Support set/get element type, shape and value in PyTorch FE InputModel (#16100)
* Support setting and getting element type, shape and value in PyTorch FE InputModel

* Fix code style

* Fix code style

* Fix rsub layer test

* Fix py style

* Apply review feedback

* Fix code style

* Fix initial values of input and output flags in Place
2023-03-07 15:45:29 +01:00
Xuejun Zhai 9b97235902
Xuejun/remove api in ov any (#15667)
* [Remove APIs] remove ov::any api  &

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [Remove APIs] remove ov::any api

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [Remove APIs] remove interfaces in ov::any  Base* operator->() & const Base* operator->()

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [Remove APIs] remove ov::any interfaces Base* get() & const Base* get()

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [Remove APIs] remove ov::any interfaces call(const Any& any) & dynamic_pointer_cast(const ::ov::Any& any) & static_pointer_cast(const ::ov::Any& any)

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [Remove APIs] fix code format issues in ov::any

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>

* [Remove APIs] fix review issue

Signed-off-by: xuejun <xuejun.zhai@intel.com>

* [Remove APIs] clear code

Signed-off-by: xuejun <xuejun.zhai@intel.com>

* [Remove APIs] fix review issue

Signed-off-by: xuejun <xuejun.zhai@intel.com>

* [Remove APIs] fix compiler issue

Signed-off-by: xuejun <xuejun.zhai@intel.com>

* [Remove APIs] fix compiler issue

Signed-off-by: xuejun <xuejun.zhai@intel.com>

* [Remove APIs] fix compiler issue

Signed-off-by: xuejun <xuejun.zhai@intel.com>

* Fix variant error

Signed-off-by: xuejun <xuejun.zhai@intel.com>

---------

Signed-off-by: xuejun <Xuejun.Zhai@intel.com>
Signed-off-by: xuejun <xuejun.zhai@intel.com>
2023-03-06 10:24:08 +04:00
Piotr Krzemiński 0860db0dc3
[PT FE] Add aten::ArgSort & aten::Sort (#15769)
* [PT FE] Add aten::argsort implementation & tests

* [PT FE] Fix formatting

* [PT FE] Fix incorrect node type for Gather

* [PT FE] Fix Reshape missing argument

* [PT FE] Simplify syntax, fix int/int64 conversion error

* [PT FE] Fix argsort incorrectly sorting negative dimension, fix tests

* [PT FE] Revert modify test class

* [PT FE] Fix formatting of argsort

* [PT FE] Fix define macro style

* [PT FE] Add missing EOF

* [PT FE] Add stable==false check, add support for different constructor calls

* [PT FE] Add aten::sort implementation & tests

* [PT FE] Apply style changes, add XFail test for stable sorting

* Update sort.cpp

* Update sort.cpp

* [PT FE] Apply style changes from aten::sort t PR

* Update test_argsort.py

* [PT FE] Apply suggested modifications

* Update test_argsort.py

* [PT FE] Apply review suggestions, add tests and extract sort method to utils

* [PT FE] Use utils sort function to implement argsort

* [PT FE] Fix input size check 4->5

* [PT FE] Implement improved tests

* [PT FE] Implement improved tests

* [PT FE] Add xfail to not yet supported tests

* [PT FE] Merge 2 implementations of sort and argsort into a single file

* [PT FE] Remove redundant sort_elements from utils

* [PT FE] Add num_inputs_check

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-03-05 20:12:32 +01:00
Ekaterina Aidova a1cde2e790
[PT FE]: fix padding vaqlue dtype (#16087) 2023-03-04 11:08:56 +00:00
Ekaterina Aidova 0edbc5ca60
[PT FE]: fix arange dtype if it is not provided (#16084) 2023-03-04 10:17:09 +01:00
Anastasiia Pnevskaia 9efdb38b96
convert_model() legacy extensions fix (#15742)
* Fixed legacy extensions passing to MO tool.

* Added tests.

* Corrected test.

* Add debug print.

* Moved tests to layer tests.

* Added comment.

* Moved legacy ext tests to separate file. Fixed tmp .pb file cleaning.

* Small correction.

* Run MO Python API tests directory in CI.

* Small fix.

* Fix for case of splitted output.

* Corrected imports.

* Corrected imports.

* Added run of legacy extensions tests from subprocess.
2023-03-03 09:59:30 +04:00
Anastasiia Pnevskaia 6185114bc4
Clearing of CustomReplacementRegistry.registry in convert_model() (#15893)
* Clearing of CustomReplacementRegistry.registry.

* Added test.
2023-03-02 14:49:45 +04:00
Mateusz Mikolajczyk 112c763256
[PT FE] Add prim::device and prim::type, improvements to aten::to, aten::eq, aten::ne (#15881)
* Add device, improve to and equal

* Rename and remove unused import

* Apply fixes from code review

* Fix decoder.py

* Load prim::device using prim::Constant

* Remove throwing exceptions

* Apply suggestions from code review

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

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-03-01 09:46:55 +01:00
Maxim Vafin 87e714eb5c
Add support for concatenation in Loop (#15899)
* Add support for concatenation in Loop

* Apply suggestions from code review

* Fix win build

* Fix issues with propagation shapes and types in Loop

* Fix einsum

* Set type and shape of count in frontend
2023-02-28 21:31:33 +01:00
Roman Kazantsev 68b7b8e69b
[TF FE] Mark-up xfailed layer tests on GPU in nightly (#15981)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-27 21:14:21 +00:00
Roman Kazantsev 5317b909f7
[TF FE] Test Nested While in the pre-commit (#15955)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-26 11:28:51 +00:00
Ekaterina Aidova 5c6ef54127
[PT FE]: support aten::index (#15544)
* [PT FE]: support aten::index

* bool indexing testing

* more tests, fix nonzero case

* apply code review
2023-02-24 14:33:00 +01:00
Roman Kazantsev ad4bd6f752
[TF FE] Simplify FakrQuantWithMinMaxVars translator and add layer test (#15927)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-24 12:13:46 +00:00
Ruslan Nugmanov 091ba1f5ee
Adds layer tests for binary and reduce tflite operations (#15791)
* adds binary and reduce layer tests

* adds binary with activations layer tests for tfl ops

* 1.moves helper functions and lists to utils file
2.adds axis as test parameter for reduce test
3.adds reluNto1 activation

* skips tanh and signbit activations

* Update tests/layer_tests/common/utils/tflite_utils.py

* Fused activations supported: RELU_N1_TO_1, SIGN_BIT

---------

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
2023-02-24 14:46:29 +04:00
Roman Kazantsev 8a56234445
[TF FE] Refactor identity operations and layer test (#15904)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-23 21:22:31 +01:00
Anastasiia Pnevskaia 1e24c51abb
Turn on onnx fallthrough in convert_model() (#15651)
* Turn on ONNX_FALLTHROUGH in torch.onnx.export().

* Removed wrong change.

* Added test.
2023-02-23 13:22:30 +04:00
Leonard Sikorski bc663878eb
[PT FE] Add torchvision::roi_align operator with layer test (#15821) 2023-02-23 09:26:17 +01:00
Ekaterina Aidova 288a750bc6
[PT FE]: support aten::einsum (#15844) 2023-02-23 11:39:28 +04:00
Maxim Vafin a9efe5bd8d
[PT FE] Extend upsample support (#15826)
* [PT FE] Extend upsample suport

* Update tests/layer_tests/pytorch_tests/test_upsample.py

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

---------

Co-authored-by: Ekaterina Aidova <ekaterina.aidova@intel.com>
2023-02-23 11:34:29 +04:00
Pavel Esir 15973fd2da
enable --compress_to_fp16=True by default in MO (#15488)
* enable --compress_to_fp16 by default in MO

* corrected docs, added warning if user did't specify --compress_to_fp16 explicitly

* fix failing MO unit-tests

* do not wipe out data_type if user defined it explicitly by cli argument

* updated warning message and docs

* corrected phrasing

* corrected phrasing in FP16_Compression.md

* set compress_to_fp16=False for convert tests

* leftover: set compress_to_fp16=False for convert tests

* minor correction

* print info message in main.py, som minor changes

* typos fix

* fix losing information whether arguments set by user or got from defaults

* returned back default values instead of None

* more selective correcting of test_mo_convert_pytorch.py; added test for cases when compression is enabled/disabled or left by default

* fix test_mo_convert_pytorch.py
2023-02-21 13:07:43 +01:00
Maxim Vafin ce3ac296ae
[PT FE] Fix aten::len for empty lists (#15820)
* [PT FE] Fix aten::len for empty lists

* Fix code style
2023-02-20 21:34:04 +00:00
Leonard Sikorski 5d3cd81fd1
Add aten::narrow operator with layer test (#15788) 2023-02-20 15:47:25 +01:00
Roman Kazantsev bc8d0ec71e
[TF FE] Refactor ReverseSequence and add layer test (#15807)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-20 12:26:19 +00:00
Roman Kazantsev b75a3b3465
[TF FE] Implement layer test for GatherNd translator (#15813)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-20 12:58:52 +01:00
Roman Kazantsev 699a1d1708
[TF FE] Refactor Gather operations and add layer tests (#15808)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-20 11:02:42 +04:00
Roman Kazantsev 7d13bc6861
[TF FE] Remove NormalizeL2 translator and refactor layer test (#15760)
It turned out that NormalizeL2 is absent in tf.raw_ops api
and always presented in the decomposed form.

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-17 14:37:42 +04:00
Roman Kazantsev bd0dfbcd7a
[TF FE] Refactor OneHot translator and add layer test (#15763)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-17 13:54:40 +04:00
Ekaterina Aidova 225f9b3801
[PT FE]: fix aten::embedding realization for integer-like indicies an… (#15721)
* [PT FE]: fix aten::embedding realization for integer-like indicies and add tests

* more comments

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

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

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-02-17 08:09:46 +00:00
Leonard Sikorski fab35896cb
[PT FE ] Add aten::index_put_ operator with layer test (#15668) 2023-02-16 08:28:46 +01:00
Roman Kazantsev cabe75da1c
[TF FE] Refactor LogSoftmax translator and layer test (#15724)
* [TF FE] Refactor LogSoftmax translator and layer test

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

* Work around for the legacy frontend

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-15 20:36:46 +00:00
Ekaterina Aidova f8aae85183
[PT FE]: add more list construct transformations (#15614) 2023-02-15 16:39:27 +00:00
Roman Kazantsev c6f7d7c98a
[TF FE] Refactor IdentityN translator and add layer test (#15727)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-15 15:18:18 +01:00
Ekaterina Aidova 13eca30081
[PT FE]: support aten::gelu with tanh approximate and tests (#15715) 2023-02-15 15:11:37 +01:00
Roman Kazantsev cb5c92f829
[TF FE] Refactor Squeeze and layer test (#15723)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-15 12:34:44 +01:00
Ekaterina Aidova ba6b2609af
[PT FE]: update masked_fill support for multiple precisions (#15722) 2023-02-15 15:32:06 +04:00
Roman Kazantsev ad20add992
[TF FE] Refactor Concat layer test and extend pre-commit (#15726)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-15 12:25:05 +01:00
Ekaterina Aidova 55d667ce32
[PT FE] aten::to extend op support for device tracing case (#15712) 2023-02-15 09:04:09 +01:00
Ekaterina Aidova 38943434b6
[MO][PT FE] POC Integrate PT FE into MO convert_model (#15197)
* [WIP]: poc: integrate pt fe to mo.convert_model

* temporaly resolve names using signature inspection

* fix logic

* move to moc frontend

* add rank and data type setting

* add input signature

* apply comments

* move after convert processing

* support work without example_input, provide parameters description

* ignore extensions on fe side

* upd tests

* more tests

* add notes about extensions support and removing onnx path

* remove debug prints

* refactoring

* update BOM
2023-02-15 08:19:15 +01:00
Ekaterina Aidova 5ead83f315
[PT FE]: fix sporaidic failure in pytorch layer tests (#15713) 2023-02-14 21:35:35 +04:00
Maxim Vafin 5cc1c2c5e5
Add support for aten::_set_item (#15643)
* Add support for aten::_set_item

* Update loop.cpp

* Update tests/layer_tests/pytorch_tests/test_set_item.py

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

* Update test_set_item.py

* Apply code review comments

* Fix code style

* Update tests/layer_tests/pytorch_tests/test_set_item.py

---------

Co-authored-by: Ekaterina Aidova <ekaterina.aidova@intel.com>
2023-02-14 14:11:51 +01:00
Evgeny Talanin fac03ee5f7
Correct random number generation (#15644) 2023-02-14 11:16:49 +01:00
Ekaterina Aidova 609dee0abc
[PT FE]: support aten:Bool, add tests for aten::add_ (#15590) 2023-02-13 23:29:43 +01:00
Roman Kazantsev 65b69fe8ca
[TF FE] Fix FusedBatchNormV3 in case of mean and variance empty tensors (#15675)
* [TF FE] Fix FusedBatchNormV3 in case of mean and variance empty tensors

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

* Add to nightly

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-13 15:23:48 +01:00
Roman Kazantsev 4352b9f179
[TF FE] Refactor Reciprocal translator and add layer test (#15652)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-13 11:10:16 +04:00
Roman Kazantsev a91f173166
[TF FE] Refactor Size translator and add layer test (#15653)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-13 11:09:12 +04:00
Roman Kazantsev a1a6ba911a
[TF FE] Refactor Split and SplitV translators and add layer tests (#15662)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-13 10:49:34 +04:00
Roman Kazantsev b300df1be6
[TF FE] Refactor ZerosLike and add layer test (#15648)
* [TF FE] Refactor ZerosLike and add layer test

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

* Fix test for Wide and Deep model

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-11 20:50:01 +00:00
Roman Kazantsev 985c769ac7
[TF FE] Refactor Log1p translator and add layer test (#15649)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-11 07:28:21 +01:00
Roman Kazantsev 6a587a71cc
[TF FE] Refactor Transpose and add layer test (#15586)
* [TF FE] Refactor Transpose and add layer test

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

* Update tests/layer_tests/tensorflow_tests/test_tf_Transpose.py

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-10 19:31:26 +00:00
Maxim Vafin 00f8d2b992
Add support for concating lists in aten::add (#15587) 2023-02-10 16:41:27 +00:00
Maxim Vafin d992c6b9c7
[PT FE] Fix aten::flatten, add more tests (#15576)
* Fix flatten, add more tests

* Apply review feedback

* Fix code style
2023-02-10 14:23:27 +01:00
Roman Kazantsev 9cd23790c7
[TF FE] Refactor Tile and add layer test (#15584)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-02-09 08:43:39 +01:00
Leonard Sikorski 92788b1838
[PT FE] Add aten::empty operator with layer test (#15490) 2023-02-09 08:24:08 +01:00
Ekaterina Aidova ac1e885324
[PT FE]: add tests for rsub and handle mixed precision (#15555)
* [PT FE]: add tests for rsub and handle mixed precision

* update tests
2023-02-08 19:55:43 +04:00
Maxim Vafin 6a9608b075
[PT FE] Fix GroupConvolution weights reshape (#15560)
* Fix GroupConvolution weigts

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

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

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

* Remove TensorList operations from the fallback

* Fix computation of dummy tensor size

---------

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

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

* Update tests/layer_tests/tensorflow_tests/test_tf_Unpack.py

---------

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

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

* Remove start_shape from test parameters

---------

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

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

* Support LeakyRELU for TensorFlow Lite

---------

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

* add new lines

* updated aten stack transformation

* add comments to the code

---------

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

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

* Correct number of inputs

* Use already implemented logical operations tests

---------

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

* Small correction.

* Clang format.

* Code correction.

* Implemented model importing to TF FE using temporary file.

* Removed wrong changes.

* Added check.

* Removed code duplication.

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

* Remove "OV_FRONTEND_PATH" from layer_tests

* Remove "OV_FRONTEND_PATH" from find_ie_version.py

* Remove "OV_FRONTEND_PATH" from .ci/

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

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

* Enable frontend/ tests

* ClangFormat

* Remove OV_FRONTEND_PATH from FE shared utils

* Add `register_front_end()` to PythonAPI

* Update Py tests with registering of "mock_py" FE

* ClangFormat

* Leftovers

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

* Add FE_LIB_PRE and FE_LIB_SUFFIX to `ov_core_unit_tests`

* Fix format

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

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

* Small fix

* Fix some cases

* Add tests for add in different types

* Add tests for mul

* Add tests for sub and div

* Small fixes

* Return list handling (needed for empty lists)

* Add test for empty list

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

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

* Use refs instead of ptrs

* Apply suggestions from code review

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

* Apply code review suggestions

* Fix code style

* Add more eltwise ops

---------

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

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

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

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

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

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

* Use Gather for coordinates swapping

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

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

---------

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

* adds layer tests for unary ops

* adds functionality to get tensors from ops

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

* adds functionality to use custom dtypes

* Cast operation support

* Enhanced tfl layer tests

* Trigger tfl layer tests in .ci

* Apply suggestions from code review

---------

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

* Add case when indexing is not specified

* Fix typos

* Fix problem with 1 input execution & missing runtime_info

* Fix issue with meshgrid placed in loop body

* Add tests to precommit

* Apply sugestions from review

* Fix input 0

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

* Not working version of aten::__and__

* Simplified implementation of ante::__and__ operator

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

* remove commented lines

* remove white space

* move include to invidual ops

* swithc include statements

* fix style

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

* upd headers

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

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

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

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

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

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

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

* Removed ov:: and fixed codestyle

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-01-25 17:08:39 +03:00
Maxim Vafin 994b227b86
Remove None at outputs of the model, improve types handling in frontend (#15258)
* Remove None at outputs of the model, improve types handling in frontend

* Fix py code style

* Add torch dependency in pybind tests

* Fix tests if fe is disabled and add backward type cpnversion

* Move decoder tests to layer tests

* Fix codestyle

* Add comment

* Move tests to separate folder

* Update .ci/azure/linux.yml
2023-01-25 13:28:47 +03:00
Bartek Szmelczynski 3bbaa16d90
Add aten mul tests (#15223)
* add tests for aten::mul

* add mul tests to precommit

* add test cases, remove parametrization

* add reason to xfails
2023-01-25 10:01:46 +01:00
Roman Kazantsev f12ffc0428
[MO][TF FE] Switch MO to TF FE in default mode (#15100)
* [MO][TF FE] Switch MO to TF FE in default mode

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

* Fix code-style

* Extend operations for the fallback

* Fix MO unit-tests

* Check only legacy FE for read-from-memory functionality

* Fix failures in IR comparator tests

* Fallback to the legacy FE in case tensorflow_custom_operations_config_update

* Revert copyright and update

* Fix unit-test since it is oriented for the legacy FE

* Fallback to the legacy FE in case deprecated config options

* Fix value propagation from deprecated config option

* Fix the Result node name in case cutting by input port for outputs

* Set Result node name aligned with the Legacy Frontend

* Reformat a list of operations to fallback

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-01-25 07:54:56 +04:00
Georgy Krivoruchko 910ed759c3
[TF] Added BroadcastTo layer tests (#15205) 2023-01-24 13:55:59 +04:00
Albert Angles 711e2cbab0
enable first_inference_latency (first_inference+time_to_inference) (#14829)
* add time_to_first_inference_result KPI as sum of inf latency values

* append unit time after the value

tested locally, worked

* Revert "append unit time after the value"

This reverts commit 428b8cafdc.

* remove metric

* revert 42dd271c3b

* enable { SCOPED_TIMER(first_inference_latency); }

* enable first_inference_latency

tested locally, it works

* remove trailing whitespace

Co-authored-by: Daria Ilina <daria.krupnova@intel.com>
2023-01-23 19:48:07 +03:00
Roman Kazantsev 5c10e3741e
[TF FE] Support ClipByValue operation (#15246)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-01-23 10:41:06 +04:00
Ekaterina Aidova 2ec116f592
[PT FE]: support conv transpose (#15191)
* [PT FE]: support conv transpose

* apply comments
2023-01-22 07:03:54 +00:00
Bartek Szmelczynski 0fce8d29f8
add tests for aten::eq (#15222)
* add tests for aten::eq

* Update tests/layer_tests/pytorch_tests/test_eq.py

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

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-01-21 21:07:47 +03:00
Ekaterina Aidova 18bfa727bd
[PT FE]: support aten::glu and aten::sigmoid_ (#15185)
* [PT FE]: support aten::glu and aten::sigmoid_

* upd headers

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

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

* return back opset

* Update op_table.cpp

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2023-01-21 21:05:20 +03:00
Roman Kazantsev 0d201376df
[Tests] Fix rest of NumPy deprecated types (#15245)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-01-21 11:17:52 +00:00
Ekaterina Aidova 595d447f2e
[PT FE]: support aten::log, aten::log2 (#15184) 2023-01-20 20:42:49 +00:00
Ilya Churaev e2635a0053
Introduce ov::ICore (#15096)
* Added new ov::ICore

* Fixed style and removed unused functions

* Fixed mock core

* Fixed linker issue

* Fixed inference functional tests

* Update copyrights

* Use new plugin API inside the new API

* Fixed CPU tests

* Removed old plugin from ov::IPlugin

* Fixed Inference tests

* Added comments and some other minor changes

* Split core interfaces

* Added logic to load v7 IRs without crash

* Fixed thread tests

* Fixed comments:

 * Add const keyword for core methods
 * Rename core methods

* Fixed mock core

* Added more const methods

* Fixed tests

* Remove unnecessary exception catch

* Fixed some comments

* Remove default implementations of get/set property

* Fix additional comments

* Removed set property

* Try to fix linux build

* Revert function move
2023-01-20 13:43:48 +04:00
Maxim Vafin 53e699eaba
Add PyTorch Frontend (#15069)
* WIP

* update input validation

* upsample_nearest2d and upsample_bilinear2d support

* support leaky_relu add test for inplace relu

* update tests, add handler for ListConstruct

* Do not create extra outputs in main body

* add positive case with non-default value

* update testing

* update test, handle non constant size and scale

* remove ie_device

* add aten::group_norm support

* refactoring

* Enable aten::reshape_as operator and add layer test

* more tests

* Fix typo in test

* Resolve conflicts

* fix code style

* expand init version

* expand_as and tests

* add transposed convolutions support

* add tests

* initial support pad

* add circular

* update for differenced in rang

* cleanup

* refactor

* more tests

* apply review comments

* Add split+listunpack transformation

* Add split+getitem transformation

* Add test cases

* fix typo

* Minor fixes

* Apply suggestions from code review

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

* Apply suggestions from code review

* Small fix

* Support converting models without freezing

* support BoolTensor and masked_fill

* add support aten::rsqrt and test for sqrt

* add cumsum and type_as

* support clamp

* support more matrix operations

* add tests

* Add aten::adaptive_avg_pool3d and layer test

* Change to rank

* fix code style in utils.hpp

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

Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>

* fix code style

* add tests

* add xfail

* remove unnecessary broadcast

* Changes required by style formater

* aten::_convolution_mode

* Changes requested by a reviewer

* remove code duplication

* add aten::unbind transformation

* full, zeros and ones

* Support getattr list and unrolling nested ifs

* Remove line change

* Enable back freezing in layer tests

* Add aten::norm operator and layer test

* Small fix in layer test

* add aten::roll

* add empty line

* Typo fix

* fix style

* fix style v2

* add pytorch frontend to wheel

* Support all types of numeric norms

* add check for dynamic shapes

* remove random change

* merge statements

* add min and max ops support

* aten::max and aten::min

* move axes range creation to utils

* add transformation for tuple results, update tests

* fix copyright

* aten::var

* add test and translation for numel

* ignore aten::clone

* Add layer test for aten::add operator

* Fix typo

* Remove redundant import

* Add parameter name in forward method

* fix code style

* apply review comments

* Add size+slice+listunpack transform

* Add append listunpack transformation

* Register transformation

* aten::where

* update realization

* Fix issue with getitem

* Fix getitem

* Add layer test for aten::view operator

* Add tests for listunpack

* add test for aten::div

* fix style

* update aten::adaptive_max_pool2d

* fix style

* add aten::floor_divide

* aten::addmm support alpha and beta with different dtype

* nonzero

* Change test name

* update test cases to include other dtypes

* aten::arange

* prim::max transformation for ListConstruct

* rename op

* generalize conv2d implementation for conv1d and conv3d

* aten::unsqueeze_ and tests for aten::unsqueeze (#70)

* add aten::le, aten::ge and tests for other tensor comparision ops (#74)

* add support trigonometry ops (#73)

* support aten::upsample_bicubic2d, aten::ceil, aten::floor (#72)

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

* extend and add tests for avg_pool and max_pool

* extend tests and constant filling ops

* fix as_tensor and full ops

* aten::repeat

* fix code style

* aten::im2col (#61)

* aten::im2col

* remove debug prints, add number of elements check

* fix failed tests

* move helper function

* use split

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

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

* fix code style

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

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

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

* fix code style

* revert removeinf floordiv, add floor_divide file

* Fix merge issue

* reduce code duplication

* refactor

* Add len operator with layer test

* update clamp to support mixed precision and add support torch.long for constants

* aten::selu

* add trunc mode to div

* add else statement

* Add test case to layer test

* Fix submodules (#88)

* update test file

* fix namings

* execute in fp64 and convert back to initial precision

* Revert set_output_size to master. Small fix in If validate

* Fix build and code style

* fix failed tests

* Add torchvision::nms operator and layer test

* Change requested by a reviewer

* Remove div test

* convert constants to input type

* Mark some cases in div tests as xfail (#93)

* Small refactoring (#94)

* Small refactoring

* Fix type

* Fix python codestyle

* Incremental fix code style (#95)

* Fix style (#96)

* Fix copyright

* Fix code style

* Branch clean up (#97)

* Optimize includes and force opset10 (#98)

* Optimize includes

* Force opset10 in pt fe

* Fix codestyle (#99)

* Fix style

* Fix clang codestyle

* Fix cerr with debug log

* Update src/bindings/python/src/pyopenvino/frontend/pytorch/decoder.cpp

* Add pytorch dependency only if pytorch frontend is enabled

* Update src/bindings/python/src/pyopenvino/CMakeLists.txt

* Add layer tests to precommit (#100)

* Add layer tests to precommit

* Remove accidentally added files

* Apply code style on layer tests

* batch norm tests and fixes

* move default weight and bias to else block

* reduce code duplication

* Changes requested by a reviewer

* Changes requested by a reviewer

* Remove dependency from pytorch in pyopenvino (#102)

* Remove dependency from pytorch when fe is disabled

* Change docstring

* Remove pytorch FE dependency from pyopenvino

* Apply codestyle (#107)

* Apply codestyle

* Remove commented line

* Apply suggestions from code review

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

* Fix mock FE test (#108)

* Fix mock PE test (#111)

* Revert changes in StridedSlice (#114)

* Small refactoring (#116)

* Small refactoring

* Fix codestyle

* Apply suggestions from code review

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

* Apply suggestions from code review

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

* Fix cmake copyright define (#117)

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

* Apply suggestions from code review

* Update build configs (#120)

* FIx build configs

* Update type cast in full.cpp

* Apply review feedback (#121)

* Apply suggestions from code review

* Apply suggestions from code review

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

* Fix issue after master merge (#122)

* Fix issue after master merge

* Fix build

Co-authored-by: eaidova <ekaterina.aidova@intel.com>
Co-authored-by: bszmelcz <bartosz.szmelczynski@intel.com>
Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>
Co-authored-by: sikorsl1 <leonard.sikorski@intel.com>
Co-authored-by: Leonard Sikorski <l.sikorski123@gmail.com>
Co-authored-by: Mateusz <mateusz.mikolajczyk@intel.com>
Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-01-18 18:16:57 +04:00
Ilya Lavrenov c4eeecfec5
Remove myriad plugin (#15131)
* Removed Intel MYRIAD plugin

* Removed Intel MYIAD from CI files

* Removed Intel MYRIAD from cmake folder

* Removed MYRIAD, HDDL from samples

* Removed MYRIAD, HDDL from scripts folder

* Removed MYRIAD from bindings folder (C and Python API)

* Removed MYRIAD tests

* Removed MYRIAD from tests folder

* Removed MYRIAD from tools folder

* Removed HDDL (VAD), MYRIAD (NSC2) from documentation

* Fixed build for AUTO unit tests

* Fixed clang code style

* Fixed comments and issues

* removed MYRIAD from AUTO tests

* Disabled MULTI tests in CI

* Update docs/OV_Runtime_UG/auto_device_selection.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>

* Update docs/get_started/get_started_demos.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>

* Update docs/OV_Runtime_UG/deployment/local-distribution.md

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>

Co-authored-by: Yuan Xu <yuan1.xu@intel.com>
2023-01-18 15:19:44 +04:00
Roman Kazantsev 5043797b1c
[TF FE] Support Group Convolutions (#15130)
* [TF FE] Support Group Convolutions

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

* Split cases of regular Convolution and GroupConvolution operations

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-01-17 16:15:19 +04:00
Roman Kazantsev 04c9c28869
[TF FE] Fix LRN operation and test it (#15145)
It allows to fix inference results mismatch for some models

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

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-01-16 21:31:24 +04:00
Ilya Churaev 0c9abf43a9
Updated copyright headers (#15124)
* Updated copyright headers

* Revert "Fixed linker warnings in docs snippets on Windows (#15119)"

This reverts commit 372699ec49.
2023-01-16 11:02:17 +04:00
Przemyslaw Wysocki cfac7e4ee4
[PyOV] Update requirements for Python 3.11 (#15072)
* Update reqs

* update license whitelist

* Revert gast

* Bump distro package
2023-01-13 14:49:55 +04:00
Ruslan Nugmanov 4601b31bd0
Keras to tflite version of tests (#15042)
* keras to tflite version of tests

* Update tests/layer_tests/common/tf2_layer_test_class.py

Co-authored-by: Evgenya Stepyreva <eva.my.link@gmail.com>

* moved out tf utility functions from modules with tf_layer_test classes to tf_utils module

* moved out tf utility functions from modules with tf_layer_test classes to tf_utils module and tflite_utils modules

Co-authored-by: Evgenya Stepyreva <eva.my.link@gmail.com>
2023-01-13 10:29:50 +00:00
Roman Kazantsev 01932428b8
[TF FE] Support While and StatelessWhile operations (#15043)
* [TF FE] Support While and Stateless While operations

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

* Reimplement setting outputs

* Apply code-review: while input number and copy-rights

* Apply code review feedback: correct template and fix typo

* Apply code-review feedback: more strict checks in reorder_ops_by_names

* Specify type for the generated test data

* Minor change to re-run CI

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-01-11 21:51:56 +00:00
Georgy Krivoruchko 0e99a5c44a
Added TF Deconvolution layer tests (#14906)
Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-01-11 21:34:08 +00:00
Vitaliy Urusovskij c7a1468fb7
Add support of f64/i64 for tests/ (#15029) 2023-01-11 12:17:47 +04:00
Vitaliy Urusovskij b64c1ff20a
Add support of I64 for tests `fillBlobs()` (#14704)
Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2023-01-10 07:53:27 +00:00
Roman Kazantsev af6ed211d6
[TF FE] Support TF2 Object Detection models (#14979)
* [TF FE] Support TF2 Object detection models

For support of OOB conversion of OD models (Faster RCNN, SSD models) several fixes were done
for Select, BroadcastArgs, Slice, and Concat operations.
Implement tests for each case

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

* Switch off Transpose Sinking that breaks some model conversion

* Apply code-review feedback: copyright and extra commented out code

* Mention that for concat this is workaround

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-01-09 17:36:42 +03:00
Vladimir Paramuzov e23b8492c5
[GPU] Change default infer precision to fp16 (#14752) 2023-01-04 15:55:44 +04:00
Georgy Krivoruchko 8dc946af5c
Added TF Convolution layer tests (#14851) 2023-01-03 17:00:25 +04:00
Roman Kazantsev 36a16c8441
[TF FE] Refactor RandomUniform support and provide more test coverage (#14847)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-29 15:56:39 +04:00
Roman Kazantsev 6b19acb3f3
[TF FE] Fix ResizeBilinear for uint8 type and test Resize operations (#14801)
* [TF FE] Fix ResizeBilinear for uint8 type and test Resize operations

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

* Convert to fp32 right before interpolation

* Add one more test for fp64

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-23 15:39:46 +00:00
Ruslan Nugmanov 250e075ee9
TFlite layer tests (#14760)
* tflite layer tests

* tflite inference

* removed part to remove

* clean-ups

* removes input preprocessing for tflite

* Apply suggestions from code review

Co-authored-by: Evgenya Stepyreva <evgenya.stepyreva@intel.com>
Co-authored-by: Evgenya Stepyreva <eva.my.link@gmail.com>
2022-12-23 05:44:44 +03:00
andriipx 31112e2c10
Changed fw_eps for test_conv_5D_precommit tests (#14573)
* changed fw_eps for test_conv_5D_precommit tests

* fixed cases with changing fw_eps for test_conv_5D_precommit tests

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2022-12-22 19:42:33 +03:00
Roman Kazantsev 0b2f3347f6
[Tools] Support NumPy 1.24 (#14728)
* [Tools] Avoid use of NumPy deprecated types

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

* Revert "[Tools] Avoid use of NumPy deprecated types"

This reverts commit 21ffc167d1.

* Move to 1.24 Numpy

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-12-19 23:51:34 -08:00
Anastasia Kuporosova 09b24a1932
Fix XML vulnerabilities found by bandit (#14415)
* Fix vulnerabilities found by bandir

* fix vulnerabilities in tests dir

* fix for mo

* some changes
2022-12-06 11:46:26 +01:00
Nikolay Shchegolev add3b11880
[CPU] New operations: IsFinite, IsInf, IsNaN. (#14314) 2022-12-01 16:34:39 +04:00
Georgy Krivoruchko c4e15e0883
Added support of float16 in decoder proto, test (#13891) 2022-11-29 17:17:04 +04:00
Georgy Krivoruchko 5c638df1c3
TensorFlow AddN layer test implementation (#13533) 2022-11-28 15:46:59 +04:00
Roman Kazantsev f80babff51
[Layer Tests][TF FE] Activate layer tests for FusedBatchNorm in training mode in the precommit (#14240)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-26 00:25:00 +03:00
Roman Kazantsev cc219d085e
[TF FE] Optimize and correct FusedBatchNorm translator - avoid Transposes (#14135)
* [TF FE] Optimize FusedBatchNorm translator - avoid Transposes

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

* Fix FusedBatchNorm: correct compute for batch_mean and batch_variance

* Add layer tests and fix based on them

* Mark failing test cases and bind to issue tickets

* Work around tests for FusedBatchNorm in inference mode

* Use separate fictitious constants for reserved outputs

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-24 02:49:29 +03:00
Maxim Vafin 580c0c6b90
Fix squeeze shape infer to not change axis value (#13975)
* Fix squeeze shape infer to not change axis value

* Fix TensorIterator

* Revert Unsqueeze changes
2022-11-22 21:24:03 +04:00
Anastasiia Pnevskaia 558714ccdd
Support of passing model from memory to mo.convert_model() (#13457)
* convert() method added.

* Moved conversion to convert() method.

* Fixed commits.

* Output dir fix.

* Added objects support for extesions param.

* Added support for transformations_config extension objects.

* Input to str unit tests.

* Added tests, added comments.

* Updated BOM.

* Removed commented code.

* Fixed extension passing.

* Small corrections.

* Fixed for python 3.6.

* Small fix.

* Moved dir creating to ov.serialize(), removed mo.serialize(), small fixes.

* Small fix.

* Small correction.

* Removed coping of params, moved convert implemetation to separate module.

* Import fixes.

* Moved hiding of exceptions to main().

* Updated comment.

* Fixed unit tests.

* Comment changed.

* Fixed dir creating.

* Tests fixed.

* Small fixes.

* Test fix.

* Added meta data generation, removed printing of execution time for silent mode.

* Import fix.

* Conflict fix.

* Fixed error.

* Fix for custom config.

* Added version, data_type params to help.

* Added mo.convert() full-functional tests.

* Small corrections.

* Comment correction.

* Moved convert to openvino package, moved LayotMap and InputCutInfo to openvino.convert.

* Added help param.

* Wrong change removed.

* Small fix.

* Removed unnecessary comments.

* Removed .xml extension check from append_ir_info.

* Added missed file.

* Fixed error.

* Fix for bool value in InputCutInfo.

* Moved InputCutInfo, LayoutMap to openvino.tools.mo.

* Moved InputCutInfo, LayoutMap to openvino.tools.mo.

* Moved check and read_model to emit_ir.

* Small correction.

* Added comment.

* Added unit_tests with convert().

* Small corrections.

* Removed convert alias from openvino.

* Fixed conflicting unit tests.

* Removed unnecessary warnings.

* Params check fix.

* Small correction.

* Added paths checks.

* Added negative tests for to_str methods, fixed errors.

* Added tuples support in input parameter.

* Added direct support of BytesIO and TF1 graph def.

* Moved reminders to update OV and use API 2.0 to main().

* Fixed keras loading.

* Returned .mapping file generating.

* Added positional input_model param.

* Added test for unnamed input_model.

* Optimize imports.

* Added more informative error for brackets syntax in --input.

* Keras direct model support.

* Keras direct model support.

* Small fix.

* Conflict fix.

* Conflict fix.

* Added direct support of BytesIO and TF1 graph def.

* Fixed keras loading.

* Keras direct model support.

* Keras direct model support.

* Small fix.

* Tests for importing from memory.

* Support of other tf/pytorch formats.

* Updated mo_convert extensions tests to use ov models.

* Removed debug output.

* Implemented PyTorch converting logic.

* Small corrections.

* Small corrections.

* Added comments.

* Fixed for single input case.

* Added switching between save to file and BytesIO.

* Small fixes.

* Rename convert() to convert_model().

* Added env variable to disable converting to onnx.

* Tests refactoring.

* Add MO Python API tests to precommit.

* Add MO Python API tests to precommit.

* Added PyTorch to layer tests requirements.

* Added supported formats description.

* Fixed errors, added tests.

* Fixed bugs, added support of numpy and ov.Tensor sample_input.

* Added more torch.Size tests.

* Small correction.

* Renamed sample_input->example_inputs.

* Tests refactoring.

* Code style.

* Added support of dict in example_inputs.

* Small correction.

* Added removing of tmp onnx model in case of conversion error.

* Fix for lists of tensors in example_inputs.

* Support of dynamic axes for Keras layer, Keras module.

* Removed disabling of eager execution.

* Tests fixed.

* Added pytest requirement for layer tests.

* Added convert_model to openvino.runtime, fixed test runs.

* Small fix.

* Tests fix.

* Better help message.

* Error fixed.

* Renamed example_inputs->example_input.

* Small fix.

* Added support of list of layouts.

* Removed wrong change.

* Added tuple support for --layout.

* Removed convert_model from openvino.runtime.

* Use of default onnx opset version.

* Added support of dynamic input shapes without example_input.

* Made better error message.

* Removed stack trace from exceptions.

* Fixed tests.

* Small fix.

* Removed wrong change.

* Added import model from memory tests in unit tests.

* Replaced compare_functions() with MO IR reader compare.

* Removed test.

* Removed not needed change.

* Fixed conflicts.
2022-11-19 11:21:44 +03:00
Smirnova Maria 5cf6ceaf83
Fix db push for stresstest and timetests (#13964)
* Fix db push

* Fix log info for new data

* Check if file exists

* Remove _id field

* Add error message print
2022-11-17 12:52:21 +01:00
Ilya Churaev a410157b67
Fixed macOS stress_tests build with PKG config (#14004) 2022-11-16 15:27:01 +04:00
Przemyslaw Wysocki 79d92b7d8d
[PyOV] Bump pyyaml (#14010) 2022-11-16 13:10:20 +03:00
Ivan Tikhonov 8d3b382ca9
fix DynamicStitch tests (#14005) 2022-11-16 00:24:38 +03:00
Roman Kazantsev 83ee6aec15
[TF FE] Reimplement NonMaxSuppression translator and test in the pre-commit (#13974)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-15 10:58:47 +04:00