Commit Graph

180 Commits

Author SHA1 Message Date
Ilya Churaev
5e25341904 Added reading of meta information from IR (#12925)
* Added reading of meta information from IR

* Fixed code style

* Added tests to cover multi-threading and removed file

* Fixed asserts

* Changed parsing of meta information

* Added meta information serialization

* Fixed unit tests

* Support unset_cli_parameters

* Changed get meta API

* Fixed threading tests

* Fixed mutex

* Removed serialization

* Fixed tests

* Fixed build

* Add quantization_parameters

* Use rt_info instead of meta section

* Disable old rt_info serialization

* Try to fix MO Reader for new rt info

* Fixed property name

* Added test to new meta format

* Added tests for new PoT config

* Added tests for new rt_info attributes

* Remove redundant code

* Revert old rt_info style for nodes

* Add get API for python

* Added python tests

* Fixed python code style

* Fixed tests code style

* Fix flake8

* Fixed python tests

* Add has_rt_info to test

* Added more comments

* Extended tests and API

* Changed error message

* Use new API to get model version

* Fixed comments on python API

* Fixed comments

* Fixed comments

* Update src/bindings/python/src/pyopenvino/graph/model.cpp

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>

* Update src/bindings/python/src/pyopenvino/graph/model.cpp

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>

* Fixed comments

* Fixed python check

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>
2022-10-21 12:21:41 +04:00
Mateusz Mikolajczyk
ffc74c8fe2 IsInf operator (#13383) 2022-10-20 20:59:01 +03:00
Przemyslaw Wysocki
a0e2f14790 [PyOV] Upgrade linter Python version (#13531) 2022-10-20 10:01:13 +02:00
Anastasia Kuporosova
2455bb67d4 [PyOV] Fix iteration over AsyncInferQueue (#13496)
* [PyOV] Fix iteration over AsyncInferQueue

* apply comments
2022-10-19 17:45:07 +02:00
Leonard Sikorski
e2b0313785 IsNaN operator (#13369) 2022-10-19 12:20:26 +02:00
Anastasia Kuporosova
81c0456acf [PyOV] Fix userdata default value (#13481)
* [PyOV] Fix userdata default value

* add test

* apply fixes
2022-10-15 13:11:15 +02:00
Orest Chura
1e5ff24834 Fix openvino_mock_py_frontend target compilation (missing openvino::runtime dependency) (#13393) 2022-10-08 11:17:51 +04: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
Leonard Sikorski
9d02de9cc0 Add Interpolate-4 to Python API and opset10 (#12229) 2022-10-03 13:09:04 +02:00
Pawel Raasz
bcc2133049 Fix openvino lin debian ci (#13255)
* Update LD_LIBRARY_PATH for python API tests

* Update LD_LIBRARY_PATH for python API tests

* Remove PYTHONPATH, OV_FRONTEND_PATH
echo PYTHONPATH and LD_LIBRARY_PATH

* Update get environ variables when are not set

* Set OV_FRONTEND_PATH variable

* Add openvino installation path to OV_FRONTEND_PATH

* Add PYTHONPATH to point install tests dir

* Add debug message for PYTHONPATH

* Update LD_LIBRARY_PATH to point openvino wheel
install directory

* Add comments for environ vars for python API tests

* Remove not required paths from linux CI

* Minor comments update
2022-09-30 09:30:22 +02:00
Jan Iwaszkiewicz
2aead0dc3f [PyOV] Making offline_transformations a private module (#13213) 2022-09-28 18:38:52 +02:00
Tomasz Jankowski
e47b8858aa Add compilation control to python test mocks (#13212) 2022-09-27 01:38:01 +04:00
Ilya Lavrenov
5c4564c214 Tensorflow func tests (#13198)
* Added auto-detect for SHUTDOWN_PROTOBUF option

* Hide some helper variables as internal ones

* Update frontends cmake files not to include tests folders

* Added an ability to test private API for TF FE

* Added an ability to test private API for TF FE

* Improved mock frontends in python tests

* Fixed compilation error

* Fixed link on WIndows
2022-09-25 16:54:26 +04:00
Mateusz Tabaka
249df503eb [Python] Relinquish infer request handle before handling exception (#13114)
When runtime exception was thrown during infer call, the infer
request handle was never relinquished nor condition variable notified.
That caused the get_idle_request_id function wait forever.
2022-09-22 13:00:44 +02: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
RICKIE777
9d56cfd79b [Benchmark] benchmark_app need disable auto batching if batch size is set. (#12553)
* When set batch_size, disable auto batching

* auto-batch only supprt auto plugin

* Set property allow_auto_batching for devices

* cancel static

* Clean Code

* Add test case for testing allow_auto_batching

* Fix the issue after merging latest master branch code

* Add allow_auto_batching in python benchmark_app

* Fix the quotes issue

* When load_network is set to allow-auto-batching, there is no need to read the value of global

* Fix the clang-format

* Change the location

Co-authored-by: River Li <river.li@intel.com>
Co-authored-by: Chen Peter <peter.chen@intel.com>
2022-09-22 09:50:30 +08: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
Przemyslaw Wysocki
006f798f91 [PyOV] Fix numpy deprecation warnings (#12849) 2022-09-12 12:32:23 +02:00
Mateusz Tabaka
7b98ebf627 [ONNX] Add support for Trilu operator (#12965)
Ticket: 91096
2022-09-08 12:51:28 +02:00
Ilya Lavrenov
8922d73e7d Fixed installation of pugixml on U22 (#12953) 2022-09-07 18:07:43 +04:00
Adrian Boguszewski
27c1c6a3d1 [PyOV] Added deprecation function (#12540) 2022-09-05 10:26:37 +02:00
Ilya Lavrenov
836765874e LTO for frontends and python (#12890) 2022-09-05 08:10:11 +04:00
Denis Kotov
7a4d463d4d Renamed CUDA device name to NVIDIA device name (#12719)
* Add NVIDIA device name along to CUDA device name (temporary solution)

* Disable nvidia_plugin along to cuda_plugin in .ci/azure/ (temporary solution)

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-09-01 20:25:11 +04:00
Pawel Raasz
6c4cc81465 Add decomposition transformation for eye 9 (#12806)
* Add eye decomposition transformation

* Fix EyeLike generation when diagonal shift
outside dimensions

* Add batch shape to eye decomposition

* Eye decomposition clean-up

* Remove reference part if no eye decompose in
decomposition tests

* Eye-Like use eye operator

* Disable eye decomposition for CPU plugin

* Use opset9 instead of ops in eye decomposition

* Apply transformations header style
to eye_decomposition.hpp

* Add model reference in eye decomposition tests
- use opset9 instead of ov::op:vX namespace

* Refactor eye decomposition:
- match style of other transformations
- add NodeRegister class to make and collect created nodes
- use `NodeRegister` in transformation for copy runtime info
- use `NodeRegister` in `MatcherPass` to replace new `register_new_node`

* Fix CI LTO optimization issue for Ubuntu 20

* Move NodeRegister to dev API
To fix LTO issue for eye decomposition

* Change NodeRegister to NodeRegistry
2022-09-01 09:59:37 +02:00
Alina Kladieva
cbd47ca7aa Revert "Add decomposition transformation for eye 9 (#12746)" (#12804)
This reverts commit 7601400d99.
2022-08-29 20:01:45 +04:00
Pawel Raasz
7601400d99 Add decomposition transformation for eye 9 (#12746)
* Add eye decomposition transformation

* Fix EyeLike generation when diagonal shift
outside dimensions

* Add batch shape to eye decomposition

* Eye decomposition clean-up

* Remove reference part if no eye decompose in
decomposition tests

* Eye-Like use eye operator

* Disable eye decomposition for CPU plugin

* Use opset9 instead of ops in eye decomposition

* Apply transformations header style
to eye_decomposition.hpp

* Add model reference in eye decomposition tests
- use opset9 instead of ov::op:vX namespace

* Refactor eye decomposition:
- match style of other transformations
- add NodeRegister class to make and collect created nodes
- use `NodeRegister` in transformation for copy runtime info
- use `NodeRegister` in `MatcherPass` to replace new `register_new_node`

* Fix CI LTO optimization issue for Ubuntu 20
2022-08-28 17:35:50 +02:00
Piotr Krzemiński
0266f25f9b [PYTHON] Align versions for subpackages, add get_version method for all subpackages (#12220) 2022-08-26 11:21:24 +03:00
Alina Kladieva
10bd602987 Revert "Add decomposition transformation for eye 9 (#12403)" (#12741)
This reverts commit ed7275adf0.
2022-08-24 23:23:20 +04:00
Pawel Raasz
ed7275adf0 Add decomposition transformation for eye 9 (#12403)
* Add eye decomposition transformation

* Fix EyeLike generation when diagonal shift
outside dimensions

* Add batch shape to eye decomposition

* Eye decomposition clean-up

* Remove reference part if no eye decompose in
decomposition tests

* Eye-Like use eye operator

* Disable eye decomposition for CPU plugin

* Use opset9 instead of ops in eye decomposition

* Apply transformations header style
to eye_decomposition.hpp

* Add model reference in eye decomposition tests
- use opset9 instead of ov::op:vX namespace

* Refactor eye decomposition:
- match style of other transformations
- add NodeRegister class to make and collect created nodes
- use `NodeRegister` in transformation for copy runtime info
- use `NodeRegister` in `MatcherPass` to replace new `register_new_node`
2022-08-24 17:59:25 +03:00
Jan Iwaszkiewicz
7f750a4be5 Skip nogil tests (#12658) 2022-08-23 12:00:11 +04:00
Ilya Lavrenov
0ac5cfd17a Improved dependencies handling for ie_wheel (#12666)
* Improved dependencies handling for ie_wheel

* Fixed compilation erros

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-08-22 11:09:56 +04:00
Jan Iwaszkiewicz
65ac9b5036 [PyOV] Add missing element Type and functions (#12614) 2022-08-18 13:19:44 +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
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
Mateusz Mikolajczyk
9e74f5d2c6 [PyOV] Add copy/deepcopy magic methods for Output/ConstOutput object (#12392) 2022-08-16 09:58:34 +02:00
Jan Iwaszkiewicz
4dc713c7eb [SAMPLES] Fix flake issues in Python speech sample (#12514)
* Fix flake issues

* Add whitespace

* Add whitespaces in tests asserts
2022-08-11 15:00:27 +04:00
Jan Iwaszkiewicz
ed39903028 [PyOV] Fix error handling for Debug builds and extend configs for CI (#12417) 2022-08-11 10:53:54 +02:00
Mateusz Tabaka
c328db5aac Set dontReverseIndices to Gather if its indices come from NMS v9 (#12478)
Ticket: 86909
2022-08-10 11:31:39 +02:00
Bartek Szmelczynski
1b5a1309cd [PyOV] Expose ConvertSequenceToTensorIterator transformation (#12362)
* check style CI

* remove space

* remove space

* expose ConvertSeqToTensorIterator transformation

* revert accidental changes

* fix namings

* revert adding transformation to MO
2022-08-08 13:34:28 +02: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
Xiping Yan
631cd160ee Add set_property without param device name. (#12354)
* Add get_property without device_name param.

Signed-off-by: xipingya <xiping.yan@intel.com>

* update

* fix build error

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* update test case for set/get property tbb

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Remove test_p, don't need parameter(deviceName).

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Add get_property for python API.
Currently I don't know how to add relevant test case.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Don't need this function.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Remove return ov::Any, replace with throw a description.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Add throw unsupported test for get_property without param deviceName.

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* Add python test case for get_property.
Test usage:
$ python -m pytest ../src/bindings/python/tests/test_runtime/test_properties.py

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>

* change == to is

Signed-off-by: Yan, Xiping <xiping.yan@intel.com>
2022-08-08 11:25:59 +08:00
Pawel Raasz
75db2bdc8c Use static pointers to frontend libraries (#12235)
* Add static shared_objects map in FEM
- add unit tests for frontend lib close
- not use static FEM in ie network reader
- add main for gtest which can use manifest file to filter tests

* Move library pointers map to manger impl
- add to manger impl method to make frontend from loaded plugin

* Add shutdown function to ov namespace
it cleans the static resources

* Revert changes related to linking mian for tests

* Add python binding to ov::openvino_shutdown

* Renamed shutdown method and added to legacy C++ API

(cherry picked from commit a8395bd207)

* Added C bindings

(cherry picked from commit d2c9ddc263)

* Move frontend lib close test to ieFunctTest
- moved to not introduced new test binary and modification on CI
  the frontend tests use dynamic linked frontend lib which is load
  on test application start and mask lib close tests
- remove gtest_main_manifest as not required now
- add ov::shutdown test to expect application crash

* Fix lib_close test
- remove not get_disabled_tests from utils
- revert CMake file formating

* Fix get model path in lib close tests

* Skip frontend lib close tests if static lib build

Co-authored-by: Ilya Churaev <ilya.churaev@intel.com>
2022-08-02 10:28:16 +04:00
Bartek Szmelczynski
9bd02f76ab [PyOV] Enable type casters (#12204)
* add type caster for ov::Layout, enable load method to take pathlibs.Path as arugment

* fix typo

* fix style

* add missing blank line

* add common function to check if py::object is either Path or string

* fix style

* Update src/bindings/python/src/pyopenvino/graph/preprocess/pre_post_process.hpp

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>

* add tests, fix style, remove pointer argument overload

* fix style

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>
2022-07-28 11:24:34 +02:00
almilosz
d7cf585485 [PyOV] Test refactoring (#12248) 2022-07-27 08:44:10 +02:00
Mateusz Tabaka
270051ebce [CPU] Add RDFT and IRDFT operators (#12099)
* [CPU] Add RDFT and IRDFT operators

Tickets: 79178 and 79192

Co-authored-by: Mateusz Bencer <mateusz.bencer@intel.com>
2022-07-25 19:23:27 +02:00
Ilya Lavrenov
3c0b17f108 Debian packages: base version (#11387) 2022-07-19 09:07:26 +03:00
Pawel Raasz
e1bcfeca9d Add SoftSign to CPU plugin (#12034) 2022-07-05 13:34:42 +02:00
Bartek Szmelczynski
82f691c38b [ONNX FE] Extend ONNX FE NMS-9 (#11790)
* update ONNX FE NMS to v9

* remove reshaping dynamic shapes

* fix style

* xfail two MSFT models
2022-07-05 12:10:29 +02:00
Tingqian Li
3e97d12fe2 [Transformation] transform ConvertLike into Convert when applicable (#7543)
* [Transformation] transform ConvertLike into Convert when applicable

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* Remove xfail markup for onnx castlike cpu tests

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* remove un-used xfail

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* Enable ConvertLike cpu functional test

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* remove unnecessary headers

* move to common transformation

Signed-off-by: Li, Tingqian <tingqian.li@intel.com>

* remove test

* fix pytest CI issue

* minor fix after rebase

* fix clang format check

* fix failed tests
2022-07-05 15:50:35 +08:00
Mateusz Mikolajczyk
a70bbad988 [PyOV] Fix loading data to Tensor from array-like objects (#11974) 2022-06-27 16:26:45 +02:00