Commit Graph

976 Commits

Author SHA1 Message Date
Xiping Yan e922edf299
Add test case to verify 4bit precision input model. (#24774)
### Details:
- *Complete the remaining work after the
[PR](https://github.com/openvinotoolkit/openvino/pull/24297) is merged.*
 - *Add test case.*

### Tickets:
 - *141542*

---------

Signed-off-by: xipingya <xiping.yan@intel.com>
Co-authored-by: Zlobin Vladimir <vladimir.zlobin@intel.com>
2024-06-06 03:23:26 +00:00
Roman Kazantsev af88a206eb
[OVC] Import openvino-tokenizers extensions from ovc tool (#24681)
**Details:** Previously, we were able to convert models requiring
openvino-tokenizers extensions (like with string operations, ragged
tensors) only in Python by `convert_model`. Now we add option to convert
using `ovc` tool. The tool internally imports extensions if they are
installed.

**Ticket:** TBD

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-05-26 15:40:40 +00:00
Jan Iwaszkiewicz 0c65b35bb8
[PyOV] Optimize dtype to Type conversion (#24588)
### Details:
- Remove costly conversion to string by replacing it with unique ids of
each dtype.
- More on `dtype.num`:
https://numpy.org/devdocs/reference/generated/numpy.dtype.num.html#numpy.dtype.num

### Tickets:
 - *...*
2024-05-21 15:50:04 +00:00
Roman Kazantsev 474a77a125
[MO] Remove test-generator dependency (#24576)
**Details:** Remove test-generator dependency. It is removed since this
module seems to be no longer developed and maintained. So it is better
to remove this dependency. `pytest` can substitute `test-generator`.

**Ticket:** TBD

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-05-20 15:55:16 +00:00
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
Xiping Yan df257c52a6
cpu_convert enable u4/i4 ->f32,bf16,i8,u8 (#24297)
### Details:
 - *cpu_convert enable u4/i4 -> f32/bf16/i8/u8*

### Tickets:
 - *124834*
 - *139282*
 - *140112*

---------

Signed-off-by: xipingya <xiping.yan@intel.com>
2024-05-16 07:16:55 +00:00
Anastasiia Pnevskaia 8229da4c0e
Remove update version reminder. (#24513)
### Details:
- As it is not a common practice for PyPI packages to remind for
updating update reminder was decided to be removed.

### Tickets:
 - 89093
2024-05-15 15:50:26 +00:00
Anastasiia Pnevskaia 836dcf5efc
Made MO deprecation message more explicit. (#24512)
### Details:
 - Made MO deprecation message more explicit.
 - PyLint fixes

### Tickets:
 -
2024-05-15 11:56:55 +00:00
Roman Kazantsev 624678d554
Fix h5py issue in GHA test jobs (#24338)
**Details:** Fix h5py issue in GHA test jobs: `error: libhdf5.so: cannot
open shared object file: No such file or directory`

**Ticket:** TBD

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-05-02 19:50:59 +04:00
mei, yang 638b433348
Fix python benchmark_app issue (#23999)
### Details:
 - *Fix python benchmark_app issue of failing to parse some parameters*

### Tickets:
 - *CVS-138414*
2024-04-26 05:32:14 +00:00
Anastasiia Pnevskaia 76b62b4bf4
Send Telemetry info during importing of openvino (#23832)
### Details:
- Send Telemetry info during importing of openvino, required for correct
user count statistic.

Following line will trigger event sending:
import openvino 

For Linux event send time:
~0.08016 ms

For Win event send time:
~0.31248 ms

### Tickets:
 - 133670

Depends on: https://github.com/huggingface/optimum-intel/pull/648

---------

Co-authored-by: Ekaterina Aidova <ekaterina.aidova@intel.com>
2024-04-22 16:01:40 +00:00
Jan Iwaszkiewicz a19c34a0f7
[PyOV] Limit numpy to major version (#24103)
### Details:

Numpy started preparation to release 2.0 version.
It brings many breaking changes listed below.
Align with these changes it's a plan for further development
(CVS-138766), for today we want to secure users against unintentional
installation of 2.x version of numpy with OV.

This PR has to be ported for 2024/1 branch

- Preparing to restrict OV to not use release of Numpy 2.0 which may
introduce many breaking changes including:
     - required bump of `pybind` to 2.12+
     - API and namespaces clean-ups and deprecations
     - behavior changes of keywords such as `copy`
- changes to existing and introduction of new dtypes (such as
`StringDType` and possibility of adding custom ones)
- more can be found here:
https://numpy.org/devdocs/release/2.0.0-notes.html
- and here:
https://numpy.org/devdocs/numpy_2_0_migration_guide.html#numpy-2-migration-guide
 
### Tickets:
 - CVS-138838

---------

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2024-04-22 13:47:49 +00:00
Ilya Lavrenov 007ed84886
Improved cross-compilation with python (#24160)
### Details:
 - Improved cross-compilation with python
 - It's important for RISC-V enablement 
 - Depends on https://github.com/openvinotoolkit/openvino/pull/24140
2024-04-22 18:33:05 +04:00
Ilya Lavrenov 5b07693667
Updated pybind11 to 2.12.0 (#24140)
### Details:
 - Removed WA for cross-compilation case
- It's possible because fix https://github.com/pybind/pybind11/pull/4856
is included to latest released version
2024-04-22 15:03:02 +04:00
Anastasiia Pnevskaia fbac30c538
Fix passing of bf16 and string types to convert model(). (#24113)
### Details:
- Removed internal conversion of all typed passed to `convert_model()`
to `np.dtype`, as some types do not have `numpy` analogs, which causes
errors. Also this step is redundant as we can use `ov.Type` instead.

### Tickets:
 - 138755
2024-04-19 15:31:51 +00:00
Roman Kazantsev cfcb6320f9
[MO Tests] Remove unit tests for no longer needed IR Reader (#24090)
**Details:** Sometimes it generates sporadic failures in precommit.

**Ticket:** 138724

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-04-18 16:35:56 +00:00
Maxim Vafin 2eb09a4d07
[FX] Remove unused code from FX decoder (#23954)
### Details:
 - *Remove unused code from FX decoder*

### Tickets:
 - *ticket-id*
2024-04-11 12:42:52 +00:00
Maxim Vafin ee2962a50c
[OVC] Allow models obtained from torch.export (#23815)
### Details:
 - *Allow models obtained from `torch.export`*

### Tickets:
 - *ticket-id*
2024-04-03 05:56:46 +00:00
Artyom Anokhov 038e6316e3
Revert "constraints openvino-dev: Limit mpmath<1.4" (#23704)
Reverts openvinotoolkit/openvino#23601

Necessary changes applied in OMZ
https://github.com/openvinotoolkit/open_model_zoo/pull/3935
2024-03-28 17:28:51 +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
Maxim Vafin f57cd8ca07
Import ModuleExtension under try-except in OVC (#23663)
### Details:
 - *Import ModuleExtension under try-except*

### Tickets:
 - *ticket-id*
2024-03-26 19:58:02 +00:00
Roman Kazantsev 1ab9bedd81
[TF FE] Support TensorFlow 2.16 (#23562)
**Details:** Support TensorFlow 2.16

**Ticket:** TBD

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-03-21 20:39:39 +00:00
Artyom Anokhov a929c8c7e6
constraints openvino-dev: Limit mpmath<1.4 (#23601)
### Details:
- Limit mpmath because of
https://github.com/pytorch/pytorch/issues/120995 and
https://github.com/sympy/sympy/issues/26273
2024-03-21 20:24:55 +00:00
Maxim Vafin edcb1b1edc
[PT FE] Add ModuleExtension (#23536)
### Details:
 - *Continuation of #22867*

### Tickets:
 - *CVS-133733*

---------

Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>
2024-03-20 12:57:53 +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
tadamczx a3c7e15860
[DOCS] Docs file structure update with fixes (#23343)
- Updated paths in an entire documentation,
- updated scripts used in docs building process,
- updated docs cmake to handle new scripts,
- fixed links,
- fixed other errors found in docs.

---------

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>
Co-authored-by: Sebastian Golebiewski <sebastianx.golebiewski@intel.com>
Co-authored-by: Karol Blaszczak <karol.blaszczak@intel.com>
Co-authored-by: Andrzej Kopytko <andrzejx.kopytko@intel.com>
Co-authored-by: Tatiana Savina <tatiana.savina@intel.com>
Co-authored-by: Vishniakov Nikolai <nikolai.vishniakov@intel.com>
2024-03-11 17:05:58 +00:00
Maciej Smyk 8d49595476
[DOCS] Update of hyperlinks to 2024 + new ov homepage diagram image for master (#23091)
* Update of links in docs to 2024 in repo.
* Replaced ov homepage diagram with a new version without Kalid, MXNet
and Caffe
2024-02-28 07:54:04 +00:00
Vitaliy Urusovskij 8bf50807ee
Additional cleaning of `InferenceEngine` (#22959) 2024-02-20 13:26:53 +00:00
Anastasiia Pnevskaia 4f3474abf6
[TF FE] Set single input tensor names in TF1 formats. (#22503)
Description: 
Change setting of names in TF1 to make single input tensor.

Ticket: 129457


Code:
* [x]  Comments
* [x]  Code style (PEP8)
* [x]  Transformation generates reshape-able IR
* [x]  Transformation preserves original framework node names
* [x]  Transformation preserves tensor names


Validation:
* [x]  Unit tests
* [x]  Framework operation tests
* [x]  Transformation tests

Documentation:
* [x]  Supported frameworks operations list
* [x]  Guide on how to convert the **public** model
* [x]  User guide update

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-02-19 13:54:42 +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
Denis Orlov 2aa768d58b
Remove mentioning GNA in constants and messages (#22797) 2024-02-13 07:18:25 +00:00
Anastasiia Pnevskaia 8372ca75bf
[OVC] Removed not needed checks of extension parameter. (#22790)
### Details:
moc_front_end.add_extension(extension) has checks of filepath existence
and creation of absolute path from relative path logic.
It is not needed to have this logic in convert_model().
### Tickets:
 - 132251
2024-02-12 18:57:57 +00:00
Anastasiia Pnevskaia 186a9de6a1
[OVC] Removed wrong text from extension parameter description. (#22781)
### Details:
- "To disable all extensions including those that are placed at the
default location, pass an empty string." - this line applies only to
legacy MO.

### Tickets:
 - 132289
2024-02-12 13:47:46 +00:00
Vitaliy Urusovskij dfe0699503
Rename IE to OV (#22733) 2024-02-09 13:36:41 +00:00
Anastasia Kuporosova 3fb591a0e6
[PyOV] Update imports for properties (#22594)
### Details:
 - *item1*
 - *...*

### Tickets:
 - *ticket-id*
2024-02-02 13:00:07 +00:00
Maxim Vafin c47ded63e6
Fix issue with older torch (#22592) 2024-02-01 23:12:15 +00:00
Anastasiia Pnevskaia ff6795e239
OVC pylint fix (#22558)
* Test change.

* PyLint fix.

* Small fix.

* Separated MO and OVC workflows.

* Corrected ovc workflow.

* Fixed error.

* Fixed error.

* PyLint fix.

* PyLint fix.

* Removed not needed change.

* Temporarily removed changes from OVC.

* Returned changes.

* Returned changes.

* Added merge_group.

* Update tools/ovc/openvino/tools/ovc/moc_frontend/pytorch_frontend_utils.py

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

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-02-01 14:47:23 +00:00
River Li 6d2d2d8e28
[Core]remove ie plugin config (#22479)
* [Core] remove ie_plugin_config

* Remove ie_internal_plugin_config and ie_plugin_config

* Remove ov::caching_properties and ov::exclusive_async_requests

* Fix failure cases and resolve comments

* Fix build error

* Remove myriad custom_op.cpp

* Fix build warning

* Fix capi auto plugin test failures

---------

Co-authored-by: Pavel Durandin <pavel.durandin@intel.com>
2024-02-01 08:56:31 +00:00
Maxim Vafin d018779add
[PT FE] torch.export support (#22397)
* [PT FE] torch.export support

* Apply code style

* Fix build

* Support torch <2.2

* Support more operations

* Update tests/model_hub_tests/torch_tests/torch_utils.py

* Support for model operations

* Support is_causal as kwarg for SDPA

* Update src/frontends/pytorch/src/op/addcmul.cpp

* Update tests/model_hub_tests/torch_tests/test_timm.py

* Support only decoder passed to convert_model

* Fix tests

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

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

Co-authored-by: Ekaterina Aidova <ekaterina.aidova@intel.com>

* Apply suggestions from code review

* Apply suggestions from code review

* Improve testing with caching model

* Apply suggestions from code review

---------

Co-authored-by: Ekaterina Aidova <ekaterina.aidova@intel.com>
2024-01-30 11:50:18 +00:00
Anastasiia Pnevskaia e2533e8126
Fixed Telemetry initialization. (#22464) 2024-01-30 09:18:36 +00:00
Roman Kazantsev d547f77d70
[TF FE] Support TensorFlow 2.15 (#22180)
* [TF FE] Support TensorFlow 2.15

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

* Use lower version of pylint

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

* Update tools/constraints.txt

* Update tools/constraints.txt

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-27 07:07:45 +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
Sebastian Golebiewski 9ebacbb379
[DOCS] Merge Samples Articles Language Versions (#21661)
* Merge samples

* Update docs/articles_en/learn_openvino/openvino_samples/automatic_speech_recognition.rst

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/articles_en/learn_openvino/openvino_samples.rst

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/articles_en/learn_openvino/openvino_samples.rst

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* additional resources

* Update docs/articles_en/learn_openvino/openvino_samples/model_creation.rst

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* Update docs/articles_en/learn_openvino/openvino_samples/automatic_speech_recognition.rst

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>

* reorganize contents of requirements

* remove api reference

* add links to READMEs on repo

* remove speech recognition sample

* removal of deprecation notice

* update conversion steps

* Revert remove speech recognition sample

* remove trailing spaces

* fix links

* Removed unwanted changes from submodules

* applying suggestions

* update api reference

* apply suggestions

---------

Co-authored-by: Maciej Smyk <maciejx.smyk@intel.com>
2024-01-12 14:24:15 +01:00
Maciej Smyk c0d564a465
[DOCS] Hyperlink 23.3 update for master (#21908)
* link update

* link update

* link update

* Update dev_api_references.rst

* Update dev_api_references.rst

* Update apidoc.py

* notebooks links

* notebook link update

* filename update

* link update

* link update api
2024-01-08 12:40:54 +01:00
Roman Kazantsev dbcb270201
[MO][TF FE] Switch off fallback to legacy FE (#21523)
* [MO][TF FE] Switch off fallback to legacy FE

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

* Support complex condition for TF While

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

* Support TensorArrayV3 of a dynamic size

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

* Test TensorArrayV3 of dynamic size

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-05 19:11:04 +01:00
Roman Kazantsev 35b41c035d
[MO][TF FE] Remove informative messages about API1.0 and TF FE limitations (#21994)
* [MO][TF FE] Remove informative messages about API1.0 and TF FE limitations

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

* Update unit-tests

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-05 20:54:31 +04:00
Oleg Pipikin 50d484db58
Remove openvino_builders (#21637)
* Remove openvino_builders

* Apply comments

---------

Co-authored-by: Pavel Durandin <pavel.durandin@intel.com>
2023-12-28 15:32:56 +04: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