Commit Graph

685 Commits

Author SHA1 Message Date
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
Maxim Vafin
c44df9907b [MO] Do not create example inputs based on input or input_shape (#18975) 2023-08-09 18:01:35 +02:00
Roman Kazantsev
8d343ef0de [TF FE][TF Hub] Support UnravelIndex operation (#19060)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-08-08 21:00:04 +04:00
Maxim Vafin
542842b0c0 [PT FE] Fix sporadic issue in round layer tests (#19051)
* [PT FE] Fix sporadic issue in round tests

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

* Fix code style
2023-08-08 00:06:30 +04:00