Commit Graph

657 Commits

Author SHA1 Message Date
Siddhant Chauhan d6d4e3deeb
Align openvino.compile_model and openvino.Core.compile_model functions (#19778)
Co-Authored-By: Anastasia Kuporosova <anastasia.kuporosova@intel.com>
2023-09-21 11:15:30 +00:00
Ilya Lavrenov c67c0663fc
Use target python packages (#19928) 2023-09-20 11:16:15 +04:00
Anastasia Kuporosova b3ee79520f
[PyOV][Docs] Add docs for if-op (#19899)
* [PyOV][Docs] Add docs for if-op

* code style

* add rtypes

* add dots
2023-09-19 21:35:38 +00:00
Anastasiia Pnevskaia 215a2f435b
tf.Graph decoder accuracy fixes (#19903)
* Fixed outputs passing from decoder.

* Fixed get_variable method.

* Code style.

* Removed xfails from precommit models.

* Minor fix.

* Comment fixed.

* Added test.
2023-09-19 19:04:24 +02:00
dependabot[bot] 475ad32cc4
Update numpy requirement in /src/bindings/python (#19897)
Updates the requirements on [numpy](https://github.com/numpy/numpy) to permit the latest version.
- [Release notes](https://github.com/numpy/numpy/releases)
- [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst)
- [Commits](https://github.com/numpy/numpy/compare/v1.16.6...v1.26.0)

---
updated-dependencies:
- dependency-name: numpy
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-19 11:19:35 +04: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
Ilya Lavrenov c7850276dd
Check only build requirements for Python API (#19919) 2023-09-19 00:11:05 +04:00
Roman Kazantsev df19699e3a
[TF Hub API][TF FE] Support TF Keras Model OOB without example_input (#19892)
* [TF Hub] Cover TF Hub use cases with adoption to OpenVINO

This is necessarily to demonstrate support of models programmed with TF Hub API
through OV notebooks.

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

* Preserve original keras input and output tensor names

* Add tests with TF Hub API models

* No KerasLayer handling

* Handle specific signature

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-09-18 12:18:05 +00:00
Anastasia Kuporosova d62348337f
[PyOV] Import properties from openvino (#19815) 2023-09-15 10:17:44 +02:00
Anastasiia Pnevskaia 18f29c02d2
Fixed scalar creating in tf.Graph decoder (#19735)
* Fixed scalar logic in tf.Graph decoder.

* Passed memory sharing flag to all Tensor constructors.

* Small correction.

* Test correction.
2023-09-14 23:36:22 +04:00
Ilya Lavrenov 35a0706dff
Replaced several cmake utilities with new ov_ prefix (#19819)
* Replaced several cmake utilities with new ov_ prefix

* Replaced several cmake utilities with new ov_ prefix
2023-09-14 16:22:50 +04:00
Przemyslaw Wysocki 66dd347d38
remove upper bound (#19802) 2023-09-14 07:53:00 +02:00
Siddhant Chauhan 4ca3d51a40
Add a error message when creating an empty Constant (#19674)
Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>
2023-09-14 00:11:32 +02:00
Anastasia Kuporosova 2bf8d910f6
[Docs][PyOV] update python snippets (#19367)
* [Docs][PyOV] update python snippets

* first snippet

* Fix samples debug

* Fix linter

* part1

* Fix speech sample

* update model state snippet

* add serialize

* add temp dir

* CPU snippets update (#134)

* snippets CPU 1/6

* snippets CPU 2/6

* snippets CPU 3/6

* snippets CPU 4/6

* snippets CPU 5/6

* snippets CPU 6/6

* make  module TODO: REMEMBER ABOUT EXPORTING PYTONPATH ON CIs ETC

* Add static model creation in snippets for CPU

* export_comp_model done

* leftovers

* apply comments

* apply comments -- properties

* small fixes

* rempve debug info

* return IENetwork instead of Function

* apply comments

* revert precision change in common snippets

* update opset

* [PyOV] Edit docs for the rest of plugins (#136)

* modify main.py

* GNA snippets

* GPU snippets

* AUTO snippets

* MULTI snippets

* HETERO snippets

* Added properties

* update gna

* more samples

* Update docs/OV_Runtime_UG/model_state_intro.md

* Update docs/OV_Runtime_UG/model_state_intro.md

* attempt1 fix ci

* new approach to test

* temporary remove some files from run

* revert cmake changes

* fix ci

* fix snippet

* fix py_exclusive snippet

* fix preprocessing snippet

* clean-up main

* remove numpy installation in gha

* check for GPU

* add logger

* iexclude main

* main update

* temp

* Temp2

* Temp2

* temp

* Revert temp

* add property execution devices

* hide output from samples

---------

Co-authored-by: p-wysocki <przemyslaw.wysocki@intel.com>
Co-authored-by: Jan Iwaszkiewicz <jan.iwaszkiewicz@intel.com>
Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
2023-09-13 21:05:24 +02:00
Georgy Krivoruchko 5eff59a2d0
[ONNX] Switched ONNX to 1.14.1 (#18359)
* Switched ONNX to 1.14

* Updated IR_VERSION in the tests

* Assigned an extended tests to issues

* Switched ONNX to 1.14.1

* Slightly relaxed requirements for ONNX 1.14.1 and updated conan.lock
2023-09-13 15:40:08 +04:00
Anastasia Kuporosova 3c1b384694
[PyOV] Expose missed properties (#19678) 2023-09-12 10:45:10 +02:00
Maxim Vafin a6bc78dd0f
[PT FE] Separate tracing and scripting modes (#19676)
* [PT FE] Separate scripting and tracing in decoder

* Fix convert_model to accept decoder

* Some fixes

* Fix code style

* Fix preprocessor tests

* Fix tests

* Fix tests

* Fix more tests

* Fix ovc tests
2023-09-12 12:40:20 +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
Przemyslaw Wysocki 25b1b4e26c
Add upper bound for setuptools (#19672) 2023-09-08 11:56:39 +04:00
Anastasia Kuporosova 8723b5dd6d
resolve gil (#19631) 2023-09-06 10:04:52 +02:00
Ilya Lavrenov a322b8256d
Unlock custom creation of PLATFORM_TAG (#19609) 2023-09-06 10:46:37 +04:00
Ilya Lavrenov 7d718fbff2
Robust detection of Cython version (#19537) 2023-09-01 14:45:51 +04:00
Przemyslaw Wysocki d3ac00c6d2
Amend cython changes (#19514) 2023-08-31 14:43:28 +00:00
Ivan Tikhonov 38cf4764cb
Transformations: API 2.0 transition part 2 (#19475)
* Transformation component API 2.0:part 2

* Refactoring

* fix build
2023-08-30 14:28:20 +02:00
Anastasia Kuporosova 23cad1770e
[PyOV] clean up in tests (#19091)
* [PyOV] clean up in tests

* use generated model in tests

* fix ci

* return back fild

* fix ci 1

* fix ci2

* update

* move models

* return back deleted test

* move model creation from conftest

* fix ci

* fix ci
2023-08-30 13:40:14 +02:00
Przemyslaw Wysocki 9af0f1eaae
[PyOV] Remove constraints link from torchvision preprocessor converter requirements (#19459) 2023-08-30 11:57:26 +02:00
Przemyslaw Wysocki b7d73cbbe3
[PyOV] Limit `cython` version (#19443) 2023-08-28 17:36:51 +02:00
Pavel Esir eaeeea9c54
[tests] save into different file in compression_test.py (#19356)
* save into different file in compression_test.py

* reuse existing mechanism for tmp_file
2023-08-24 13:58:14 +02:00
Mustafa Cavus aa53394c07
TorchFX bugfix missing core object in get_device() (#19255) 2023-08-23 14:42:38 +04:00
Ekaterina Aidova 80b8b6fff1
[PT FE]: allow example input list with single tensor (#19308) 2023-08-23 12:08:39 +04:00
Surya Siddharth Pemmaraju acbac2f560
Added openvino torch backend import statement in init files (#19208)
* Added openvino torch backend import statement in init files

* Added openvino/torch folder for simplyfing the import

* Removed imports from all the other init.py files

* Fixed flake8 issues

* Removed requirements.txt

* Removed redundant functions
2023-08-22 14:24:53 +04:00
Anastasia Kuporosova f51f0c7a6a
try to remove redandant functions (#18761)
* try to remove redandant functions

* remove redundant imports

---------

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-08-17 16:11:39 +00:00
Ilya Lavrenov e49b208393
Enabled debug build for Python wheels (#19197) 2023-08-17 16:45:18 +04:00
Sergey Lyalin f0300a36eb
Efficient FP32 -> FP16 conversion for convert_precision, save_model, ovc and mo (#18988)
* WIP Postpone fp16 in CompressFloatConstantsImpl

* Apply suggestions from code review

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

* WIP: Compression to FP16 in Serialize

* Prepared for efficient fp32 to fp16 conversion

* Update src/core/reference/src/runtime/reference/convert.cpp

* Called real slow reference implementations in the place where the optimized versions are supposed to be implemented

* Code style

* Fixed 0 values in the fast f64 to f16 compression

* Optimized convert_from_f32_to_f16_with_clamp

* Added optimized f32->f16 instance of change_constant_precision

* compression transformation Python test

* use tmp dir, minor corrections

* Update src/bindings/python/tests/test_transformations/test_compression.py

* Update src/bindings/python/tests/test_transformations/test_compression.py

* style fix

* define rt_info for postponed_fp16_compression

* remove redundant class

* fix temp dir for Win in test_compression.py

* update definitions in convert.hpp

* Update implementation in convert.cpp

* Update serialize.cpp

* Update compress_float_constants.cpp

* added macros for ARM/non_x86 in convert.cpp

* fix macros in convert.cpp

* change fixme placement in serialize.cpp

* style_fix

* Update src/core/reference/src/runtime/reference/convert.cpp

* style_fix

* Optimized count_out_of_f16_range

* Code style

* Revert unused

* Update src/core/src/pass/serialize.cpp

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

* Update src/core/reference/src/runtime/reference/convert.cpp

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>

* use optimized convert_from_f32_to_f16_with_clamp for non postponed

* minor corrections

* Update src/common/transformations/src/transformations/common_optimizations/compress_float_constants.cpp

* Update compress_float_constants.cpp

* Switched mo and ovc to save_model instead of serialize to leverage performance improvements in fp32->fp16

* Applied minor code imporvements to address review feedback

* Minor changes in code

* Update tools/ovc/openvino/tools/ovc/main.py

* Apply suggestions from code review

* Fixed failed test in case when both usual xml compression and fp16 compression are applied simultaneously (disabled for now)

* Added description for CompressFloatConstantImpl postponed parameter

* Description of postponed parameter for CompressFloatConstants

* Reverted switching to save_model in mo as the compression can be applied not only via CLI and old code should be kept for Python path (not applicable for ovc)

* Removed remining committed test artefacts and reverted remaining changes in mo

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
Co-authored-by: dmitrygo <dmitry.gorokhov@intel.com>
Co-authored-by: Vladimir Paramuzov <vladimir.paramuzov@intel.com>
Co-authored-by: Pavel Esir <pavel.esir@intel.com>
Co-authored-by: Pavel Esir <pavel.esir@gmail.com>
2023-08-17 11:08:33 +00:00
Surya Siddharth Pemmaraju a6719ef2be
Improvements for 2023.1 release (#19168)
* TorchFX caching bugfix and improvements

* Fixed inconsistent env variable for Backend device

* Identify PyTorch FrontEnd Decoder type

* Added import statement in init files

* Registered ts_openvino as a separate backend

* Added caching fix and removed extraneous code

* Changed the name of ts backend

* Fixed issue with local temporary object

* Removed import statement from init files

* Changed the documentation

* Added get_supported_ops method for decoders

---------

Co-authored-by: Cavus Mustafa <mustafa.cavus@intel.com>
Co-authored-by: ynimmaga <yamini.nimmagadda@intel.com>
2023-08-16 15:13:21 +02:00
Jan Iwaszkiewicz baa0ce46b0
[PyOV] Accept Python functions as Extension attrs and properly capture GIL (#18992) 2023-08-16 14:44:48 +02:00
Ekaterina Aidova 89956b65e3
[PT FE]: fixes type checking for freezing conditions (#19199) 2023-08-16 10:30:05 +02:00
Przemyslaw Wysocki 71ac5ee301
[PyOV] Raise allowed diff value for torchvision preprocessor test (#19146) 2023-08-16 10:28:03 +02:00
dependabot[bot] c7eb9fe7c7
Update tensorflow requirement in /src/bindings/python (#19169)
Updates the requirements on [tensorflow](https://github.com/tensorflow/tensorflow) to permit the latest version.
- [Release notes](https://github.com/tensorflow/tensorflow/releases)
- [Changelog](https://github.com/tensorflow/tensorflow/blob/master/RELEASE.md)
- [Commits](https://github.com/tensorflow/tensorflow/compare/v1.15.5...v2.13.0)

---
updated-dependencies:
- dependency-name: tensorflow
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-15 01:15:39 +04:00
Ilya Lavrenov 1ffab2fe30
Added --single-version-externally-managed during python package build (#19177) 2023-08-14 17:45:23 +04:00
Ilya Lavrenov 2830b20d73
Removed 'wheel' upper bound in requirements.txt (#19170) 2023-08-14 17:40:25 +04:00
Ilya Lavrenov 11610b2cc9
Added 'openvino_req_files' component for archives (#19174) 2023-08-14 16:58:08 +04:00
Przemyslaw Wysocki 45a60639af
[PyOV] Add `sympy` dependency for torchvision preprocessor tests (#19112) 2023-08-11 12:03:59 +02: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
dependabot[bot] 5386e11fe4
Update pytest requirement in /src/bindings/python (#18232)
Updates the requirements on [pytest](https://github.com/pytest-dev/pytest) to permit the latest version.
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](https://github.com/pytest-dev/pytest/compare/5.0.0...7.4.0)

---
updated-dependencies:
- dependency-name: pytest
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-08-10 01:53:11 +04:00
Maxim Vafin dafe437833
[PT FE] Fix issue with kwargs in signature (#19088)
* Fix issue with kwargs in signature

* Update src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py

* Fix problem with some ops in detectron2

* Use debug name for extra input signature
2023-08-09 21:50:07 +02:00
Ilya Lavrenov 678c2954ed
Properly handle python-package in cpack exclude components (#19089) 2023-08-09 21:10:13 +04:00
hyunback kim 58bd8e7f0b
[GPU] Add disable winograd convolution in execute_config. (#18964)
* [GPU] Add disable winograd convolution in execute_config.

Signed-off-by: hyunback <hyunback.kim@intel.com>
2023-08-09 13:32:36 +09:00