Commit Graph

56 Commits

Author SHA1 Message Date
Anastasia Kuporosova 7f99b88420
[PyOV] python op implementation (#24487)
### Details:
 - based on: https://github.com/openvinotoolkit/openvino/pull/23612

### Tickets:
 - CVS-141051

---------

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2024-05-20 12:40:17 +00:00
Evgenya Nugmanova 6306ee1a86
Exposes ov::Symbol and new methods of ov::Dimension (#23688)
### Details:
 - *Exposes ov::Symbol to py API*
 - *Exposes new ov::Dimension methods to py API*

### Tickets:
 - *CVS-136760*

---------

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>
Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>
2024-03-27 06:14:03 +00:00
Jacek Pawlak 239466ca5d
copyright year update (#23370)
New PR due to merge
conflicts(https://github.com/openvinotoolkit/openvino/pull/22917)

Updated the copyright year from 2018-2023 to 2018-2024 in all openvino
files

Ref. to script: CVS-101144

Command used:
```bash
git grep -lz '2018-2023 Intel Corporation' | xargs -0 sed -i '' -e 's/2018-2023 Intel Corporation/2018-2024 Intel Corporation/g'
```
2024-03-14 09:37:02 +00:00
Sebastian Golebiewski da5e76263d
[DOCS] Update OpenVINO API references (#22884)
Changing references from "OpenVINO API 2.0" to "OpenVINO API", as
mentioned in
https://github.com/openvinotoolkit/openvino/pull/22873#discussion_r1492115073

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2024-02-19 09:27:14 +00:00
Jan Iwaszkiewicz 742c0179e0
[PyOV] Remote API support for Python (#22629)
### Details:
- Extended `Core` class to interact with Remote API via `compile_model`,
`create_context` and `get_default_context`.
 - Added `RemoteContext` and `RemoteTensor` classes to Python API.
 - Added `ClContext` and `ClImage2DTensor` classes placeholders.
 - Added `VADisplayWrapper`, `VAContext` and `VASurfaceTensor` classes.
 - Added utility function to raise `NotImplemented` errors.
 
**TODO list (with cc's):**
- [x] Decide which `VADisplayWrapper` constructors stay.
`VADisplayWrapper(VADisplay device)` (which translates to `void*`) is
quite necessary to pass memory pointers from/to external libraries.
`VADisplayWrapper(std::string& device)` is not necessary as it
introduces additional build dependency on libva itself. However, there
are no standard libva bindings that expose such functionalities.
- [ ] Proposal: change of `create_tensor` to `create_device_tensor ->
RemoteTensor` to make difference clear while API expose
`create_host_tensor -> Tensor`. (cc @ilya-lavrenov @slyalin)
- [x] Question: move CL and libva related classes to specific submodules
`openvino.intel_gpu` or keep it as-is in flat namespace? (cc
@ilya-lavrenov @slyalin @akuporos)
- [x] Decide on how memory management should work. My draft proposal:
expose in future PR as "read-only" via custom bindings to `cl_mem` in
case of accessing `ClImage2DTensor`.
- [x] Add test cases.

### Tickets:
 - *129468 and 129469*

---------

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2024-02-16 06:50:51 +00:00
Anastasia Kuporosova 3fb591a0e6
[PyOV] Update imports for properties (#22594)
### Details:
 - *item1*
 - *...*

### Tickets:
 - *ticket-id*
2024-02-02 13:00:07 +00:00
Anastasia Kuporosova 27e01f6d0f
Get rid of distutils (#22281)
* Get rid of distutils

* get rid of LooseVersion

* try to get rid of clean and copy_file

* fix mo tests

* fix warning in mo

* Update src/bindings/python/wheel/setup.py

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

* add packaging to requirements

---------

Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>
2024-01-24 21:22:57 +01:00
Anastasia Kuporosova 5048299d97
Update year in src/bindings/python folder (#22186)
* Update year in src/bindings/python folder

* fix ci
2024-01-16 18:58:06 +01:00
Ilya Lavrenov c59ddbab69
Removed legacy components from installation (#21803)
* Removed legacy components from installation

* Updated OMZ submodule
2023-12-22 10:38:26 +01:00
Ilya Lavrenov 80618b0498
Drop POT (#21805)
* Drop POT

* Removed POT transformations
2023-12-21 16:46:37 +04:00
Maciej Smyk 2f65827f9f
[DOCS] Moving files to new location for master (#21575)
* repo update

* repo update

* repo update

* Update LowPrecisionModelRepresentation.rst

* Update LowPrecisionModelRepresentation.rst

* Update CMakeLists.txt

* Update QuantizedNetworks.rst

* separate location for pypi publishing files

* Update src/bindings/python/CMakeLists.txt

fixing path in src/bindings/python/CMakeLists.txt

---------

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-12-12 16:27:01 +04:00
Ilya Lavrenov 2604c33d1b
Don't add mxnet extras for openvino-dev on macOS arm64 (#20403) 2023-10-12 13:23:18 +04:00
Jan Iwaszkiewicz 6a326455b9
[PyOV] Propagate errors on imports from runtime module (#20273)
Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-10-11 11:53:34 +04:00
Ilya Lavrenov ead4b8a0ec
Moved cmake functions, variables to API 2.0 naming style (#20281)
* Merge Linux CC + static build + clang compiler

* Improvements

* Removed ie prefixes from cmake scripts

* Fixes for NPU
2023-10-09 22:30:32 +04:00
Ilya Lavrenov 8349849e1c
Use FindPython3.cmake (#19847)
* Use FindPython3.cmake

* Fixed compilation on macOS 14 with new core development tools

* Try to use Python3_SOABI instead of PYTHON_MODULE_EXTENSION

* Use Development.Module

* Keep specifying only Python3_EXECUTABLE

* Print PYTHON_MODULE_EXTENSION

* Added check for minimal cmake version for python API

* Returned Python3_INCLUDE_DIR for cross-compilation case

* Try to allow cmake older than 3.18

* Use build python interpreter to check cython dependency

* revert changes in .ci/openvino-onnx/Dockerfile

* removed unused code

* Fixed issue with variables scope

* Experiment: remove include dirs

* Corrected docs

* Use pybind11 function to set extension

* Revert "Experiment: remove include dirs"

This reverts commit 6f7f90211c.

* Refactor ConvolutionBackpropDataLayerTest, ConvolutionLayerTest, DeformableConvolutionLayerTest (#19810)

* Refactor ConvolutionBackpropDataLayerTest

* Refactor ConvolutionLayerTest

* Refactor DeformableConvolutionLayerTest

* Apply comments

* Apply comments

* Fix

* Updated minimum cmake version for Windows

* Simplified check

* Removed useless message status

* Use puiblic option

---------

Co-authored-by: Oleg Pipikin <oleg.pipikin@intel.com>
2023-09-26 20:57:29 +02:00
Przemyslaw Wysocki e34c5a09c6
[PyOV] Add an `__init__.py` alignment check in CMake (#19882)
* Add init check

* Apply CR
2023-09-19 00:36:13 +04: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
Jan Iwaszkiewicz 583939b828
[PyOV] Aliases and namespace redesign (#18157)
* Remove inits, update main one

* Fix stacklevel

* Testing wrong solution

* Testing test test

* Fix test test test test

* mo modules mo problems

* Xfail test that check stdout/err?

* not so correct solution to circular imports

* Fix or not to fix

* CMake magic, co-authors: my best team

* Fix package imports

* Fix tools inits

* Fix ovc tf

* Fix Q000

* Fix F401

* Fix linters

* Add save_model

* Remove LayoutMap

* Move test_utils to 'internal modules'

* First testing

* Missing Type

* Expand main namespace

* Change some more tests

* Add OVAny to namespace

* Add Constant and Parameter to namespace

* More tests changes

* Fix inits

* Add layout_helpers to main namespace

* Revert CMake and linux.yml with ovc

* Update main inits

* Remove MO from tools inits

* changes to init files

* Fix tests

---------

Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>
2023-07-28 11:52:21 +04:00
Tatyana Raguzova 609a7d7716
Fix issue with cleaning up after build wheels (#18774)
Co-authored-by: Artyom Anokhov <artyom.anokhov@intel.com>
2023-07-27 11:33:19 +02:00
Ilya Lavrenov 04cb55c37d
Moved BA from openvino-dev to openvino (#18571) 2023-07-19 14:36:47 +04:00
Ilya Lavrenov bd0117d648
Vcpkg conan fixes (#17765)
* Small fixes for openvino::pugixml creation for Dev packages

* Flexiable components installation

* Fixed compilation for x86

* Added extra checks for ENABLE_NCC_STYLE

* Fixed typo in RPM
2023-05-29 15:40:51 +04:00
Maciej Smyk 13c966f293
[DOCS] Link adjustment (Snippets) for master (#17659)
* link fix

* diagram_workflow

Removal of not used diagram_workflow.svg images

---------

Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2023-05-24 14:03:54 +04:00
Przemyslaw Wysocki 923b6f297c
[PyOV] Move environment markers to `requirements.txt` files (#17113)
* WIP

* WIP

* Debug

* WIP

* Expand function to other setup.pies

* Revert mxnet

* Update docstring'

* restore defusedxml

* Update tools/mo/requirements.txt

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

* Code review

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-04-25 13:25:21 +00:00
Ilya Lavrenov a34ef680f2
Made plugins.hpp generation to be CONFIG dependent (#17139) 2023-04-24 14:48:45 +04:00
Przemyslaw Wysocki ea213f687a
Fix regex (#16850) 2023-04-12 01:06:54 +04:00
Ilya Lavrenov feb08c408f
Return benchmark_tool to openvino-dev wheel (#16834) 2023-04-10 16:34:51 +04:00
Przemyslaw Wysocki 6237868437
Dependabot-ignore line (#16679) 2023-04-03 15:49:27 +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
Ilya Lavrenov 392e0fda34
Added missed licenses to openvino-dev (#16057) 2023-03-02 21:18:39 +04:00
Anastasia Kuporosova 4c0d28f26d
Try to update minimum setuptools req (#15971)
* Try to update setuptools req

* suppress output from setup
2023-03-01 17:05:51 +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
Ilya Lavrenov 0e544e44a1
Renamed requirements.in file (#14863) 2022-12-30 18:00:36 +04:00
Ilya Lavrenov 8dd8262b77
Added Debian, Raspbian, Ubuntu 22.10 support to install dependencies (#14226)
* Added Debian, Raspbian, Ubuntu 22.10 support

* Updated dependencies.cmake

* Fixes in script

* Added RHEL 9.1 support

* Added proper comments

* Compilation of rpm packages for aarch64 is fixed

* Proper generation of requirements.txt files when ENABLE_WHEEL=OFF

* samples build improvements

* Proper name for json library

* Proper condtion in samples
2022-11-25 11:13:43 +04:00
Ilya Lavrenov 3c8578fd5b
Check debian packages buil (#14075) 2022-11-17 22:09:31 +04:00
Ilya Lavrenov c51ee524ad
Tuned wheels build (#14038) 2022-11-17 00:03:34 +04:00
Ilya Lavrenov c40d225b6f
Removed duplicated files from OpenVINO wheel (#13725) 2022-11-02 07:58:58 +04:00
Ilya Lavrenov 786690a44f
Added post-processing for python wheel platform tags (#13584) 2022-10-21 17:42:26 +04:00
Ilya Lavrenov a092a192d8
Ability to build against oneTBB build RelWithDebInfo (#12940)
* Ability to build against oneTBB build RelWithDebInfo

* Debug TBB issue

* Fixes
2022-09-07 09:58:30 +04:00
Ilya Lavrenov 101e1ea5ad
simple Windows installer POC (#12308)
* 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
2022-07-27 14:04:22 +04:00
Ilya Lavrenov 3c0b17f108
Debian packages: base version (#11387) 2022-07-19 09:07:26 +03:00
Ilya Lavrenov 19d0e5ba52
CMAKE: IE_VERSION => OpenVINO_VERSION (#11242)
* IE_VERSION => OpenVINO_VERSION

* Reverted installation of python unconditionally
2022-03-28 19:32:21 +03:00
Sergey Lyubimtsev dd076264eb
add pre-release description for wheels packages (2) (#10813)
* add pre-release description for wheels packages

* refactoring

* lines

* Revert "lines"

This reverts commit 01a74dc168.

* linters

* linters

* nighly revision of docs URL
2022-03-11 11:09:17 +03:00
Sergey Lyubimtsev acf8cacfbc
requirements markers clean up (#10179)
* requirements markers clean up

* formatting & comments

* typos
2022-02-09 10:18:24 +03:00
Sergey Lyubimtsev 4cd20425c3
Building of openvino-dev wheel results many temp files in source tree (#9936) 2022-01-28 13:14:26 +03:00
Sergey Lyubimtsev dbae4fef18
Update install guides for PyPI (#9760)
* update copyright

* Inference Engine -> OpenVINO™ Runtime

* Update package names

Update link to release notes
Update link to Inference Engine guide
Add note about plugins supported on macOS

* update names in headers

* trademarks

* beautify wording
2022-01-21 19:31:08 +03:00
Alexey Suhov a79830cb55
Update year to 2022 in copyright notice (#9755) 2022-01-19 01:07:49 +03:00
Sergey Lyubimtsev 0ff88458f9
fix PyPI upload error: Invalid value for classifiers. Error: Classifier 'OSI Approved :: Apache Software License' is not a valid classifier. (#9656) 2022-01-14 13:09:12 +03:00
Sergey Lyubimtsev ff330ea41e
Fetch requirements directly from openvino tools (#9154)
* Fetch requirements directly from accuracy_checker

* get requirements from pot & benchmark tool directly
2021-12-20 14:01:17 +03:00
Liubov Talamanova 4564867a44
Update POT tests for OMZ location in openvino/thirdparty (#9171)
* Move OMZ to thirdparty/open_model_zoo

* Improve diagnostic of issues

* Update path to OMZ in the Python wheel setup.py

* Update POT tests for OMZ location in openvino/thirdparty

* fix mo path

Co-authored-by: azhogov <alexander.zhogov@intel.com>
2021-12-20 09:10:39 +03:00
Sergey Lyubimtsev b41cb57773
Fix build issue for openvino wheel package on Windows (#9265)
* Fix build issue for openvino wheel package on Windows

* fix env
2021-12-17 10:42:21 +03:00