Commit Graph

219 Commits

Author SHA1 Message Date
Mateusz Tabaka
738d7bb09f Remove ov::JsonConfigExtension (#14087)
Ticket: 96278

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-11-21 15:06:08 +04:00
Anastasiia Pnevskaia
80b9a5eeae compress_to_fp16 parameter in MO. (#13832)
* Added convert_to_fp16 param in MO.

* Deprecated data_type.

* Renamed param, made value optional.

* Docs update.

* Docs update.

* Docs update.

* Changed param description.

* Conflict fixed.

* Apply suggestions from code review

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

* Param description correction.

* Corrected docs.

* Apply suggestions from code review

Co-authored-by: Pavel Esir <pavel.esir@gmail.com>

* Fixed docs.

* Small correction.

* Update docs/MO_DG/prepare_model/FP16_Compression.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/MO_DG/prepare_model/FP16_Compression.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/MO_DG/Deep_Learning_Model_Optimizer_DevGuide.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update tools/mo/openvino/tools/mo/utils/cli_parser.py

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/get_started/get_started_demos.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

* Update docs/MO_DG/prepare_model/Model_Optimizer_FAQ.md

Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>

Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>
Co-authored-by: Pavel Esir <pavel.esir@gmail.com>
Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
2022-11-19 13:57:15 +00: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
Anastasiia Pnevskaia
c56cd93a28 Pass MO meta data to RT info (#13633)
* Moved MO meta data to RT info.

* Undo wrong change.

* Reformat code.

* Code reformat.

* Corrected error message.

* Test correction.

* Test fix.

* Updated MO IR Reader.

* Added testing of meta data for MO IR reader.

* Code corrections.

* Default params removed from meta data.

* Test corrected, fixed paths cropping.

* Small fix.

* Renamed legacy_path to legacy_frontend.

* Fixed error.
2022-11-18 23:08:35 +04:00
Anastasiia Pnevskaia
8f05bab594 PartialShape -> str methods alignment (MO, ov::core). (#13613)
* Added PartialShape from str constructor, added to_string() method.

* Small corrections.

* Moved shape parsing to PartialShape and Dimension classes.

* Fixed errors.

* Added tests for shapes with comma separator.

* Fixed tests.

* Test fixed.

* Fixed test.

* Fixed tests.

* Small fix.

* Removed usage of depricated method.

* Fix in MO IR reader.

* Tests fixed.

* Fix in MO IR reader.

* Test fixed.

* Shape class alignment.

* Code fixes.

* Code fixes.

* Used unnamed namespace.

* Undo change of Shape attribute adapter.

* Undo change of Shape attribute adapter.

* Removed unnecessary includes.

* Removed unnecessary code.

* Test fixed.

* Fix in MO IR reader.

* Moved check_all_digits() to ov::util.

* Moved check_all_digits() to src/core/src/.

* Clang format.

* Apply suggestions from code review

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>

* Removed dimension_util file.

* Removed wrong change.

* Removed extra spaces from string representation of Shape.

* Test fixed.

* Added support of comma separator for value. Updated help.

* Returned old format shape serializing.

Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
2022-11-18 14:38:11 +04:00
Evgenya Stepyreva
7d670c5e5f Restore quantized Group Convolution weights (#13659)
* Introduce allow_fold

* Update ShapeOfConstFolding.py

* Update ShapeOfConstFolding.py

* Update ShapeOfConstFolding.py
2022-11-17 11:12:55 +04:00
Anastasiia Pnevskaia
75ba2c9fd7 Replaced openvino.offline_transformations with openvino._offline_transformations. (#13989) 2022-11-16 14:02:13 +04:00
Mateusz Tabaka
985bdc1138 Enable SmartReshape in offline transformations (#13510)
Ticket: 79534
2022-11-16 07:37:15 +01:00
Pavel Esir
34f16bf749 [MO] turn on bom_tests (#13721)
* turn on bom_tests

* fixed root directories to search

* leftovers fix

* removed requirements from package_BOM.txt; corrected error messages to install via pip

* removed extract_release_version.py from package_BOM.txt, added requirements files to skip

* removed redundant commented line

* mentioned CustomLayersMapping.xml.example in docs

Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
2022-11-15 12:38:59 +04:00
Przemyslaw Wysocki
d2871fd52c [PyOV] Enable Python 3.10 on Azure CI (#12578)
* Fix mypy for numpy==1.21.6

* Apply CR changes

* Allow Python 3.6 for open source

* Attempt to silence mypy

* Revert to 3.6 in setup.pys

* Fix merge conflict

* Add newline

* Fix Python version assert

* Test Python 3.10 CI

* Try bumping up pybind to 2.10

* Link default python to python 3.10

* Add sudo to changing default python

* Bump python version in setupvars

* Fix exception in test

* Do the same for compatibility

* Apply same CI changes to other pipelines

* Attempt to fix arm and windows CIs

* Fix win py lib version and links?

* Try to fix CI

* Fix win python path

* Update win path

* Test disable PDPD

* Disable TF for testing CI

* Add sudo to rm

* Test linux

* Update requirements

* RM sudo

* Add debug step to CI on ARM

* build py from source on linux

* Remove debug step from ARM

* Fix err

* Fill num_proc

* Fic py installation

* Bump pdpd to 2.3.1

* Bump np vers

* Try to upgrade onnx to 1.12.0

* Revert onnx upgrade, enable frontends

* Build py shared

* Export library

* activate py env

* Bump scipy for py3.10

* Another scipy bump

* Fix Windows path, add nfs helper for mount

* Attempt to fix win_cc

* Batch of changes

* Try to fix ngraph-onnx-lin

* Install lsb-release for docker on ngraph-onnx-lin

* Link lsb_release

* Try bumping Ubuntu to 22.04

* Revert ubuntu change in dockerfile

* Refactor tests for onnx1.12

* Fix ONNX compatibility and numpy warnings

* Refactor tests for onnx1.12

* Fix ONNX compatibility and numpy warnings

* Upgrade ONNX to 1.12 in cpp

* Skip unsupported ops

* Revert "Fix ONNX compatibility and numpy warnings"

This reverts commit cd8a0e6b8e.

* Small changes

* Remove unnecessary changes

* Bump Python version in github workflows

* Fix flake error

* Another flake error

* Even more flake errors

* Xfail more tests

* Fix mypy errors

* Change onnx version in tests

* Bump ONNX in MO

* Fix onnx utils in comp

* Minor changes

* Import pathlib

* Add xfails to compatibility tests

* Skip segfaulting tests

* Fix onnx nametuple

* Fix flake

* Try to fix py3.6 onnx

* Switch to venv in windows

* Fix model importer and reqs

* Add __test__

* Debug print

* Fix flake

* Update linux.yml

* Update windows.yml

* Update linux.yml

* Update windows.yml

* Install python3.10

* Update windows.yml

* Update windows.yml

* Update windows.yml

* Update windows.yml

* Update windows.yml

* Update windows.yml

* Update windows.yml

* Update windows.yml

* Install py embedded

* Fix dir

* Fix curl

* Add complete file

* CP file

* Bump py ver

* Fix missing venv

* Try to install

* Disable venv

* Bump OMZ commit

* checkout omz

* Revert omz

* Bump omz

* Revert pybind bump

* Update .gitmodules

* Change pybind to fork

* change ssize_t to size_t

* Install bz2 for py build

* Bump omz

* Bump pandas requirement version

* Revert omz

* Install missing clang

* Bump omz

* Bump versions on fork

* Bump numpy in model zoo

* Fix clang

* Skip segfaulting pdpd test

* Skip another pdpd test

* Skip pdpd places.cpp

* Bump py ver in setupvars.bat

* Disable paddle tests

* Use int instead of str

* Fix requirements path

* Enable lin-cc

* Fixes in CI

* lin-cc and ngrpah-onnx changes

* Update num_proc

* Update ngraph-onnx

* Minor change

* Fix env var

* Change ubuntu to 20

* Get compiler on ngraph-onnx

* Add sudo to apt-get

* Add SSL

* Download ssl

* Different way of installing ssl

* Minor changes

* install zlib

* Fix env var

* Fix docker building error

* Revert changes

* Modify dockerfile

* Change pychecks python version

* Cleanup

* Add LayerNorm to expanded ONNX functions

* Revert previous commit

* Add LayerNorm to expanded ONNX functions

* Apply clang

* Move LayerNorm tests to skip_segfault

* Unskip pdpd tests

* Enable pdpd tests on linux

* Refactoring

* Remove 3.6 from reqs

* Refactoring

* Minor changes

* Minor changes

* Relax MO reqs

* Bump torch version

* relax pytest

* Specify pytest version

* Fix pytest pip conflict

* Bump pybind11 to v2.10.1 release tag

* Specify separate pytest version for py3.10

* Bump attrs

* Add py dependency

* Refactor versions

* Add venv activation to tf tests

* Fix fdupes

* Bump OMZ submodule

* Remove find and replace

* Change pybind to upstream fork

* Set pybind to proper commit

* Minor changes

* Try to fix scipy

* Updated exclude patterns for nlohmann json

* [PyOV] Fix wheel requirements for new package versions

* Specify CPU plugin versions

* Bump OMZ version

* Fix linter

* Fix linter 2

* Fix linter 3

* Disable linter

Co-authored-by: Mateusz <mateusz.mikolajczyk@intel.com>
Co-authored-by: jiwaszki <jan.iwaszkiewicz@intel.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-11-08 11:38:39 +04:00
Maxim Vafin
f1d7647b8d Fix Slice issue in MO IR Reader (#13784)
* Fix slice issue in MO IR Reader

* Add unit test

* Fix slice test
2022-11-07 11:22:22 +04:00
Przemyslaw Wysocki
520b9ff68c [PyOV] Disallow Python 3.6 usage (#13240)
* Remove py3.6 constraints

* Cleanup out of date python versions

* Bump pybind11 to v2.10.1 release tag

* [PyOV] Fix wheel requirements for new package versions

Co-authored-by: jiwaszki <jan.iwaszkiewicz@intel.com>
2022-11-06 10:45:42 +04:00
Roman Kazantsev
de687650d2 [TF FE] Fix output names list for meta format (#13828)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-11-04 11:40:59 +04:00
Przemyslaw Wysocki
1cc499429a [PyOV] Upgrade ONNX to 1.12.0 (#12847)
* Refactor tests for onnx1.12

* Fix ONNX compatibility and numpy warnings

* Upgrade ONNX to 1.12 in cpp

* Skip unsupported ops

* Revert "Fix ONNX compatibility and numpy warnings"

This reverts commit cd8a0e6b8e.

* Small changes

* Remove unnecessary changes

* Bump Python version in github workflows

* Fix flake error

* Another flake error

* Even more flake errors

* Xfail more tests

* Fix mypy errors

* Change onnx version in tests

* Bump ONNX in MO

* Fix onnx utils in comp

* Minor changes

* Import pathlib

* Add xfails to compatibility tests

* Skip segfaulting tests

* Fix onnx nametuple

* Fix flake

* Try to fix py3.6 onnx

* Fix model importer and reqs

* Add __test__

* Bump OMZ commit

* checkout omz

* Revert omz

* Bump omz

* Bump omz

* Revert omz

* Bump omz

* Change pychecks python version

* Add LayerNorm to expanded ONNX functions

* Apply clang

* Move LayerNorm tests to skip_segfault

* Refactoring

* Minor changes

* Minor changes

* Relax MO reqs
2022-11-03 22:56:57 +04:00
Evgenya Stepyreva
cd76557df5 Make Resize Bilinear infer in f32 (#13650) 2022-10-28 18:26:14 +04:00
Bartek Szmelczynski
464e0aae72 Support Unsqueeze-13, Squeeze-13 in MO (#13391) 2022-10-28 13:01:21 +02:00
Anastasia Kuporosova
9872a34bb9 [PyOV] mark pyopenvino as internal (#13427)
* [PyOV] makrk pyopenvino as internal

* change pyov -> _pyov

* change pyov -> _pyov

* replace impor in py files

* change install path

* undo some changes

* Revert "undo some changes"

This reverts commit 9e5794a394c1b7cd1823f70a0ddd4f8742547edf.

* replace in rest files

* keep folder w/o underscore

* undo changes in ci configs

* improve changes in cmake

* add pyopenvino deprecation warning

Co-authored-by: Adam Tumialis <adam.tumialis@intel.com>
2022-10-26 12:51:31 +02:00
Andrei Kochin
247675b0bc [MO] Update reminder message for 2022.3 (#13572) 2022-10-21 19:43:38 +04:00
Evgenya Stepyreva
1047bb7732 Simplify Reshape inserted while converting RNN from mxnet (#13570) 2022-10-21 14:29:39 +04:00
Piotr Krzemiński
d715ecaa32 [CPP/SAMPLES] Samples location independant on script execution directory (#13251) 2022-10-20 10:01:55 +02:00
Ilya Lavrenov
2e336e4bb8 Fixes for brew support on OSX (#13476)
* Fixes for brew support on OSX

* Added new policy

* added quotes

* Used OpenVINODeveloperPackage

* Extra fixes

* Use standard verbose variable

* Fixed pkg-config generation
2022-10-15 00:15:03 +03:00
Evgenya Stepyreva
abd58eef5c Group Convolution: prevent dyn input shape from making weights dynamic via ShapeOf (#13374)
* GroupConvolution: prevent dynamic input shape to make weights dynamic via ShapeOf

* Minor fix to get rid of deprecation warnings
2022-10-11 18:48:11 +04:00
Roman Kazantsev
e1545622d3 [TF FE] Switch on fallback for TF FE even for use_new_frontend option (#13321)
* [TF FE] Switch on fallback for TF FE even for use_new_frontend option

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

* Add unit-test for TF FE transformation config fallback

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-05 06:28:24 +03:00
Nadezhda Ageeva
45052f19be [MO] cleanup fused names after all transformations (#12906)
Add test

Update src/common/transformations/include/transformations/common_optimizations/fused_names_cleanup.hpp

Co-authored-by: Ivan Tikhonov <ivan.tikhonov@intel.com>

Review comments

Cleanup test includes
2022-10-03 18:53:13 +04:00
Roman Kazantsev
5fef222bce [TF FE] WA: Support Non-frozen Formats (#13289)
* [TF FE] WA: Support Non-frozen Formats

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

* Normalize path to the intermediate model

* Apply feedback: add path to return and correct tests

* Check that the file is not empty in the test

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-10-01 01:37:27 +03:00
Roman Kazantsev
52cf4eacd1 [MO, Common] Fix SplitConcatPairToInterpolateFusion transformation (#13286)
* [MO, Common] Fix SplitConcatPairToInterpolateFusion transformation

It fixes a case when Split go with disconnected output port.
For this case, this transformation must not be applied.

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

* Fix grammar mistake in the comment

* Remove ref_function from the test

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-09-29 17:41:55 +00:00
Jan Iwaszkiewicz
2aead0dc3f [PyOV] Making offline_transformations a private module (#13213) 2022-09-28 18:38:52 +02:00
Bartek Szmelczynski
d0af3bb9ee [MO] enable ir_reader read and write Quantico model (#12515) 2022-09-23 15:35:43 +02:00
Anastasia Popova
940844e71f mo.convert() method. (#11347)
* 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.

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

* 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.

* Conflict fix.

* Conflict fix.
2022-09-23 17:29:00 +04:00
Przemyslaw Wysocki
d5a274b0e4 [PyOV] Drop Python 3.6 support (#12280)
* Drop Python 3.6

* Test dropping Python to 3.6 in py_checks.yml

* Allow Python 3.6 for open source

* Add docs on upgrading Python
2022-09-22 11:58:12 +02:00
Daniil Lyakhov
6ac2c00f83 Describe pruning transformation in MO help (#13121) 2022-09-21 16:05:48 +04:00
Roman Kazantsev
08e397d571 [MO] Extend support for TF BlockLSTM with the single output, concatenated hidden states (#13095)
* [MO] Extend support for TF BlockLSTM with the single output, concatenated hidden states

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

* Remove extra comments

* Apply the code review feedback: return useful logs, more logs for asserts

* Add unit-test for shape infer

* Add unit-test for transformation

* Fix a bug with adding input port for BlockLSTM

* Apply code-review feedback: no need to create existing port, add more comments and correct

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-09-20 15:18:49 +03:00
Pawel Raasz
4f683687de Enable mock fe tests in python api 2.0 tests (#12978)
* Building python frontend tests

* Enable mock tests in new python API:
- Fix mock_py frontend library name
- Set same destination for mock_py frontend as others frontends
- Fix importing mock_py frontend
- Minor changes in mock_py tests

* Fix flake8 issue

* Fix linking issue on windows

* Remove DISABLE_PYBIND11 option

* Build mock_py always as shared library
- put mock_py into ov::frontend namespace
- minor re-factor of mock_py

* Add mock c API fix warning on windows

* Fix installation of mock_py frontend

* Install mock_py frontend library in tests

* More detailed error message in python test
when cannot import frontend

* Restore IMPLEMENT_OPENVINO_API for windows build
of pybind_mock_frontend

* Set env paths for python API test on Azure CI
- skip tensorflow conversion ext test when not installed

* Correct skip tensorflow test decorator

* Add C API macro for mock1 frontend

* Ignore E999 error reported by flake8

* Fix conversion extension name for tf imports

* Fix flake8 issues

* Remove python3.8 path from LD_LIBRARY_PATH
on debian CI

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-09-20 11:56:46 +03:00
Ilya Lavrenov
836765874e LTO for frontends and python (#12890) 2022-09-05 08:10:11 +04:00
Anastasia Popova
e0974b1e4c Mo indices fix (#12842)
* Fixed error in indeces processing.

* Small correction

* Small correction
2022-09-01 17:03:09 +04:00
Bartek Szmelczynski
fc27a6b49f [MO][ONNX FE] Input freezing realized via set_tensor_value method for ONNX FE (#12059) 2022-08-30 14:58:31 +02:00
Artur Kulikowski
2b2e04d974 MO uses the same version of protobuf like other packages (#12713)
* MO uses the same version of protobuf like other packages

* Restrict Protobuf to version >=3.18.1 and lower than 4.0.0
2022-08-25 13:09:03 +02:00
Maxim Vafin
56808c7aed Add ScatterUpdate value infer (#12595)
* Add ScatterUpdate value infer

* Add additional test case to ScatterUpdate tests
2022-08-22 17:52:49 +02:00
Leonard Sikorski
91546336bc [MO][Kaldi] RestrictedAttention component support in MO (#12582) 2022-08-22 09:10:20 +02:00
Maxim Vafin
000f5d8049 Use new reprocessing for legacy MO (#11302) 2022-08-19 15:33:30 +04:00
Mateusz Bencer
d7ce8289ac [MO] Fix SSliceComplex transformation (#12537) 2022-08-19 12:14:10 +02:00
Katarzyna Mitrus
6fd23416d4 [MO] Optimize redundant Concat in GRUBlockCell conversion (#12078)
* Optimize redundant Concat in GRUBlockCell conversion

* Imports and code refactor

* Update comments

* Update rename and remove nodes

* Update import
2022-08-19 10:37:14 +02:00
Leonard Sikorski
005938d105 Restrict protobuf to a stable version lower than 4.0.0 (#12275) 2022-08-19 08:50:19 +02:00
Ilya Lavrenov
5d31a27f57 Fix conditions for python when cmake debug prefix is not empty (#12601) 2022-08-18 08:31:23 +04:00
Maxim Vafin
4d4263f45c [MO] Improve layout help (#12535)
* [MO] Improve layout help
2022-08-16 15:39:42 +02:00
Ilya Lavrenov
2e7284cfa0 Automatically detect ENABLE_PYTHON, ENABLE_WHEEL default values (#12551)
* Add ENABLE_WHEEL=ON by default

* Adjust CMake options for GitHub checks

* Add ov_check_pip_package and ov_check_pip_packages CMake functions

* revert options

* skip empty lines

* formatting

* fix condition

* check for patchelf

* Add numpy dependency to condition

* Fix error:

    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (gast 0.4.0 (c:\hostedtoolcache\windows\python\3.7.6\x64\lib\site-packages), Requirement.parse('gast==0.3.3; platform_system == "Windows"'), {'paddlepaddle'})

* set DENABLE_WHEEL=OFF for openvino-onnx docker

* Supported newer versions of shellcheck

* Don't use excluded sources

* Improved NCC process of clang search

* Fixes

* A lot of updates

* Fixes after 2 PRs merge

* Fixed build

* Fixes

* Relaxed cython version a bit

* Try non-pip cython as well

* Fixed MacOsX

* Disable pybind usage for MO tests as well

* Added descriptive warning messages

* Fixed compilation on Windows

* Support for cmake < 3.15

* FIxed Windows linkage

* Fixed review comments

Co-authored-by: Sergey Lyubimtsev <sergey.lyubimtsev@intel.com>
2022-08-16 14:43:30 +04:00
Anastasia Popova
595bdb71a7 Changed update date in MO message. (#12396)
* Changed update date.

* Changed update date.

* Year update.
2022-08-12 13:29:45 +00:00
Artur Kulikowski
ab9319ba94 Fix: Refreshing of places after subgraph extraction (#12494) 2022-08-11 16:55:06 +04:00
Roman Kazantsev
e2080cd8a4 [TF FE] Implement conversion for Attention OCR model (#12428)
* [TF FE] Implement conversion for Attention OCR model

The following scope of work is done to make Attention OCR convertable:
1. Refactored translators for BiasAdd, Slice, and ArgMax operations. Add translation for StopGradient operation.
2. The previous traversing algorithm to compute topological sorted nodes list was incorrect. Now it is implemented based on topologically_sorted function from core/graph_util.hpp.
3. The unsupported data types are now preliminary converted to undefined type for the purpose of to have them cut off.

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

* Revert workaround for support of non-frozen models

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

* Correct third-party dependencies

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

* Apply feedback from code-review

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

* Apply code-review feedback from PR12444

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

* Apply the rest of comments from the code-review

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2022-08-10 09:06:26 +03:00
Ilya Lavrenov
6ca47b074d Library versions & made tests relocatable (#12416)
* Fixes for cases when TBB_DIR env var is set

* Don't use make in build_samples.sh script

* First version of Windows installer

* WIndows NSIS installer

* Improved version of debian packages

* Improvements

* Improvements

* Debian packages now look good

* Library versioning

* Fixed tests to run against debian packages

* Fixed frontend tests

* Fixed code style

* FIxed Windows

* Fixed python tests

* Fixed paths in tests

* fdvfdv

* Fixes

* USe versioning only for debian packages

* Relocatable tests

* Fixed

* Fixed all tests

* Fixed clang-format

* Fixed more tests

* Fixed some tests

* Absolute paths in .ci

* Fixes

* Added support of OpenCV 3.4

* Trying to fix gnaUnitTests
2022-08-08 13:59:24 +04:00