Commit Graph

365 Commits

Author SHA1 Message Date
Anastasia Kuporosova
0942c6617b [PyOV] Add function which create unique names for test files (#13929) 2022-11-10 17:04:25 +03:00
Jan Iwaszkiewicz
d6fe686237 [PyOV] Bump version of pytest for compatibility API (#13932) 2022-11-10 16:55:42 +03:00
Mateusz Mikolajczyk
1c03be58ff [CORE] IsFinite, IsInf, IsNan reference implementation (#13621)
* Add reference implementation for Is ops

* FIx test

* Fix typo

* Remove deprecated

* Fix issues with API switch

* Force cast to float for float16/bfloat16 in ref

* Fix style

* Remove BWDCMP_RTTI

* Remove TensorVector helper check

* Remove evaluate functions

* Disable faling tests due to missing eval
2022-11-09 19:17:26 +03:00
Jan Iwaszkiewicz
5ae221e107 [PyOV] Fix mypy after bump, general refactor (#13913)
* Fix mypy errors after bump PEP482, reformat code in general

* Enable checks

* Fix smaller issues

* Revert typo with comments

* Fix indents
2022-11-08 19:26:39 +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
Anastasia Kuporosova
713eb9683f [Pyskip failed tests (#13892) 2022-11-07 14:46:51 +04:00
Jan Iwaszkiewicz
664c196a13 [PyOV] Fix wheel requirements for new package versions (#13871)
* Bump pybind11 to v2.10.1 release tag

* [PyOV] Fix wheel requirements for new package versions
2022-11-05 16:01:45 +04:00
Zlobin Vladimir
28a118be39 Apply improvements I found during https://github.com/openvinotoolkit/openvino/pull/13388 (#13743) 2022-11-04 14:41:15 +04:00
Jan Iwaszkiewicz
9f2489941f Bump pybind11 to v2.10.1 release tag (#13793)
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2022-11-04 02:12:47 +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
Ilya Lavrenov
e30a935e6f Removed conda option from python build (#13819) 2022-11-03 15:07:20 +04:00
Ilya Lavrenov
a5a969886b Preparation for python debian package (#13800) 2022-11-03 08:19:18 +04:00
Ilya Lavrenov
c40d225b6f Removed duplicated files from OpenVINO wheel (#13725) 2022-11-02 07:58:58 +04:00
Anastasia Kuporosova
bb296fcb11 [PyOV] some fixes and improvements in python tests (#13656)
* [PyOV] mark device dependent test

* fix assert in test

* fix assert error
2022-10-29 08:00:49 +02:00
Ilya Lavrenov
fbd6d14c3b Several fixes for compilation fixes (#13674)
* Added i386 support

* Cross-compiled wheel package

* Fixes

* Try to use cross-env

* Fixed path to crossenv

* Strict dependency

* Removed numpy dependency

* explicitly activate crossenv

* Don't install ONNX for tests conversions during cross-compilation

* Updates

* Extra improvements

* Fixed compilation with strict flags

* Fixes

* Revert changesin .ci/azure/linux_arm64.yml
2022-10-27 17:30:24 +04:00
Pawel Raasz
dd11d57fc5 Fix core tests warnings as errors and ONNX CI (#13648)
* Fix gather type_prop test build issue on windows

* Add pytest-forked to test requirements

* Update src/bindings/python/requirements_test.txt

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

* Remove warning suppression for core tests

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>
2022-10-26 22:14:25 +03:00
Bartek Szmelczynski
bdc037adcf Add IsFinite operator (#13441) 2022-10-26 13:24:01 +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
Ilya Churaev
2a344b66cb Update to the latest cmake for Windows (#13604)
* Update to the latest cmake for Windows

* Skip new warnings

* Added compiler flags for old cmake

* Disabled some warnings

* Suppress new warnings

* Fixed some errors

* Disable some warning for lpt

* Fix some warnings

* Disable new warnings

* Fix some warnings

* Disabled Was error for arm

* Fixed some errors

* Fixed some new warnings

* Fixed auto plugin

* Fixed Windows warning

* Fixed Windows

* Disable some warnings

* Some changes

* Small test fixes

* Fixed python build

* Added skip warnings for legacy python API
2022-10-25 18:11:46 +04:00
Ilya Lavrenov
786690a44f Added post-processing for python wheel platform tags (#13584) 2022-10-21 17:42:26 +04:00
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
Przemyslaw Wysocki
27a03948c2 [PyOV] Rewrite map to generator in ie_api.py (#13571) 2022-10-21 09:56:48 +02:00
Jan Iwaszkiewicz
0f0a08cde1 [PyOV] Refine InferRequestWrapper and AsyncInferQueue (#13512) 2022-10-20 21:34:03 +02: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
Przemyslaw Wysocki
1861609119 [PyOV] Fix nightly pip conflicts (#13387)
Signed-off-by: p-wysocki <przemyslaw.wysocki@intel.com>
2022-10-18 11:24:06 +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
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
Ilya Lavrenov
c2911adf94 Conda-forge fixes (#13392) 2022-10-12 12:16:13 +04:00
Orest Chura
1e5ff24834 Fix openvino_mock_py_frontend target compilation (missing openvino::runtime dependency) (#13393) 2022-10-08 11:17:51 +04:00
Ilya Churaev
8a9c19e3eb Warning as error for Windows (#13291)
* parent 6e7016ccda
author Ilya Churaev <ilya.churaev@intel.com> 1664281499 +0400
committer Ilya Churaev <ilya.churaev@intel.com> 1664510018 +0400

Fixed warnings on local machine

* Added CMAKE_COMPILE_WARNING_AS_ERROR usage

* Fixed style

* Fixed merge conflicts

* Fixed typo

* Fixed myriad build for macOS

* Fixed warning

* Fixed tests

* Disabled incorrect test

* Try to fix linux tests

* Revert "Try to fix linux tests"

This reverts commit 29224c93ff.

* Fixed tests

* Revert logic with incorrect cast

* Fixed log softmax

* Disable warning as error for cuda

* Try to fix inference_engine_s

* Fixed cmake

* Revert "Fixed cmake"

This reverts commit 87e9e4e674.

* Revert "Try to fix inference_engine_s"

This reverts commit a1adca8b05.

* WA for static symbols in inference_engine_s test library

* Fixed code style

* Fixed static definition for master

* Revert "Fixed static definition for master"

This reverts commit 20d00d215a.

* Revert "Fixed code style"

This reverts commit 0eb2362543.

* Revert "WA for static symbols in inference_engine_s test library"

This reverts commit 75ef86a79d.

* Fixed linker issue for Windows

* Disable WaE by default

* Disable warning as error in the developer package

* Try to fix dev package

* Try to fix Windows Jenkins

* Revert old behavior for tread_warn_as_err variable
2022-10-06 13:44:21 +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
Ilya Lavrenov
2ad15ececc Removed excess rpath for libraries in wheel (#13218)
* Store OSX archs for sub-projects

* Removed useless rpath
2022-09-27 13:33:51 +02:00
Tomasz Jankowski
e47b8858aa Add compilation control to python test mocks (#13212) 2022-09-27 01:38:01 +04:00
Ilya Lavrenov
07d68b5895 Ability to build OpenVINO wheel based on OV developer package (#13197)
* Allow to compile wheel package based on OpenVINO developer package

* Added wheel specific runtime dir to avoid issues with generator expressions

* Added backward compatibility

* Trying to fix RHEL, U20

* Fixed cmake options in setup.py
2022-09-26 11:33:50 +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
Pawel Raasz
2449ab066a Delete pybind11 cross compile workaround (#12775)
Co-authored-by: sikorsl1 <leonard.sikorski@intel.com>
2022-09-07 10:54:11 +04:00
Adrian Boguszewski
27c1c6a3d1 [PyOV] Added deprecation function (#12540) 2022-09-05 10:26:37 +02:00