Commit Graph

649 Commits

Author SHA1 Message Date
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
Ilya Churaev 5ae9d80113
Remove core properties from set_property() call (#19008)
* Remove core properties from compiled_model call

* Add ENABLE_MMAP NO to python test

* Fixed set_property tests

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2023-08-08 15:55:41 +04:00
Przemyslaw Wysocki 4ad072e55c
[PyOV] Add temporary workaround for wheel building issue (#19011)
* Add upper bound

* Minor changes
2023-08-07 13:06:02 +04:00
Anastasia Kuporosova 3adb6d4cd2
[DOCS] Update PYTHONPATH in docs (#18961) 2023-08-03 11:46:34 +02:00
Anastasia Kuporosova 83d7b9d372
[PyOV] unskip test_ops_matmul (#18934) 2023-08-03 12:06:07 +04:00
Przemyslaw Wysocki 62fa09a181
[PyOV] Add torchvision to OpenVINO preprocessing converter (#17934)
* Some progress

* refactoring

* Refactor tests, run black

* Refactor, flake

* Minor change

* Add support for num_output_channels

* WIP

* Add dependency

* Almost done

* Fix flake

* Add MO convert

* Minor changes

* Add interpolation mode tests

* Add requirements for preprocessing

* Fix linter

* Update tests

* Fix type error

* Introduce typing

* Rename module

* Code review

* Update src/bindings/python/src/openvino/preprocess/torchvision/torchvision_preprocessing.py

Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>

* Update src/bindings/python/src/openvino/preprocess/torchvision/preprocess_converter.py

Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>

* CR changes

* Fix mypy

* Minor change

* Minor change

* Fix flake

* typing change

* Update types

* Add tools to pythonpath

* Add MO reqs

* Minor change

* Fix PT FE issue

* bugfix

* Use absolute path

* Debug

* Debug req path

* Change MO to OVC

* Enable PT FE building

* Debug

* Skip some tests on ARM

* ADd ticket numbers

* Some progress

* refactoring

* Refactor tests, run black

* Refactor, flake

* Minor change

* Add support for num_output_channels

* WIP

* Add dependency

* Almost done

* Fix flake

* Add MO convert

* Minor changes

* Add interpolation mode tests

* Add requirements for preprocessing

* Fix linter

* Update tests

* Fix type error

* Introduce typing

* Rename module

* Code review

* Update src/bindings/python/src/openvino/preprocess/torchvision/torchvision_preprocessing.py

Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>

* Update src/bindings/python/src/openvino/preprocess/torchvision/preprocess_converter.py

Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>

* CR changes

* Fix mypy

* Minor change

* Minor change

* Fix flake

* typing change

* Update types

* Add tools to pythonpath

* Add MO reqs

* Minor change

* Fix PT FE issue

* bugfix

* Use absolute path

* Debug

* Debug req path

* Change MO to OVC

* Enable PT FE building

* Debug

* Skip some tests on ARM

* ADd ticket numbers

* Update test val

* Change pytest version

* Modify GH workflow

* Update cmake

* Update cmake

* fix cmake

* Skip tests on ARM

* Fix after OVC MO changes

* Limit torch requirements

* Raise allowed diff in test

* Debug - remove new bindings

* Debug - remove interpolation modes

* Debug - change test

* Cleanup

* Minor change

* Disable on ARM and Py<38

* Update ARM marker

* limit torchvision for ARM

---------

Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>
Co-authored-by: gklodkox <gracjanx.klodkowski@intel.com>
Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2023-08-02 16:44:30 +04:00
Przemyslaw Wysocki 7e5877fdaf
[PyOV] Restore ONNX requirement for Python tests (#18904) 2023-08-02 12:24:44 +02:00
Anastasia Kuporosova 6dd88d76d3
[PyOV] try to run add_extension_test (#18900)
* [PyOV] try to run add_extension_test

* rename flag

* try to run extension test on linux

* run on linux
2023-08-02 11:14:03 +04:00
Ilya Churaev 0e13b99a3d
Remove ngraph headers from some core source files (#18894)
* Remove ngraph headers from some core source files

* Suppress some warnings

* Suppress more warnings

* Try to fix some compilation issues

* Suppress more warnings

* Supress clone_model

* Suppress warnings for Windows

* Suppress more warnings for Windows

* Suppress more warnings for Windows

* Additional suppress

* More Windows warnings

* Additional warning

* Suppress more warnings

* Suppress warning from python API
2023-08-02 07:22:17 +04:00