Commit Graph

836 Commits

Author SHA1 Message Date
Anastasia Kuporosova 0852c4efb3
[PyOV] convert ExecutionMode enum to any (#23284)
### Details:
- ExecutionMode enum binding was missed to be added to
`py_object_to_any` function that caused segfault

### Tickets:
 - CVS-134484
2024-03-06 09:25:32 +00:00
Mateusz Mikolajczyk 17bf1f6d84
[PyAPI][Opset14] Python API ConvertPromoteTypes-14 (#22988)
### Details:
 - *Python API for ConvertPromoteTypes-14*
 - *...*

### Tickets:
 - *129205*

---------

Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>
2024-03-01 13:09:05 +00:00
Vitaliy Urusovskij fddda65e34
Fix use of `OPENVINO_ASSERT` (#23023)
### Details:
- `OPENVINO_ASSERT` takes boolean expression as first argument. In order
to explicitly throw AssertFailure, need to specify `false`, non-empty
string will be treated as `true`

---------

Co-authored-by: Sergey Shlyapnikov <sergey.shlyapnikov@intel.com>
2024-03-01 08:12:50 +00:00
Maxim Vafin 8b792927fa
[PT FE] Support multiple FX operations (#23112)
### Details:
 - *Unpack nested tuples at model outputs*
 - *Support for `aten.cat.default` with default axis*
 - *Support `aten::reciprocal_` and `aten::abs_` for TorchScript case*
 - *Support:*
    *  `aten.adaptive_max_pool3d.default`
    *  `aten.adaptive_max_pool{N}d.default`
    *  `aten.amin.default`
    *  `aten.argmin.default`
    *  `aten.bitwise_{XXX}.default`
    *  `aten.clamp_max.default`
    *  `aten.clamp_{max/min}.Tensor`
    *  `aten.fill.Tensor`
    *  `aten.flip.default`
    *  `aten.fmod.{Scalar/Tensor}`
    *  `aten.ge.{Scalar/Tensor}`
    *  `aten.gt.Tensor`
    *  `aten.index_select.default`
    *  `aten.le.{Scalar/Tensor}`
    *  `aten.log{10/1p/2}.default`
    *  `aten.{max/maximum/mean/min/minimum}.default`
    *  `aten.min.dim`
    *  `aten.ne.Tensor`
    *  `aten.pow.{Scalar/Tensor_Tensor}`
    *  `aten.reciprocal.default`
    *  `aten.rsub.Tensor`
    *  `aten.scatter.value`
    *  `aten.select_scatter.default`
    *  `aten.sign.default`
    *  `aten.sqrt.default`
    *  `aten.sum.default`
    *  `aten.unfold.default`
    *  `aten.var.correction`
    *  *trigonometric ops*

 - *Enabled layer tests for added ops for torch.export case*

### Tickets:
 - *ticket-id*
2024-02-29 16:14:31 +00:00
Jan Iwaszkiewicz 9c800b995c
[PyOV] GIL free creation of RemoteTensors (#23049)
### Details:
 - Release GIL while creating RemoteTensor instances.
 - Addded missing docs to Core class.
 - To be tested(?)

### Tickets:
 - *CVS-129477*

---------

Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>
2024-02-29 09:17:45 +00:00
Anastasia Kuporosova 160b1930c2
Fix rendering of serialize and save_model (#23013)
### Details:
 - *item1*
 - *...*

### Tickets:
 - 133915
2024-02-28 11:41:55 +00:00
Siddhant Chauhan ab675e72c6
[PyOV] Enable ov.PartialShape.dynamic(int) binding (#23036)
### Details:
 - Add new binding for dynamic which accept integer as argument.
 - created tests in `test_partial_shape` & `test_partial_shape_equals`

### Tickets:
 - Closes #23024

---------

Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>
2024-02-28 08:53:18 +00:00
inbasperu 996a50283d
refactor: replace hardcoded strings with property objects (#23063)
# Refactor: Use Property Objects Instead of Hardcoded Strings

This PR closes #23047 by replacing hardcoded string literals with their
corresponding objects from `openvino.properties` in the Python tests
under `src/bindings/python/tests`.

## Implementation

A script was developed to automate the refactoring process across the
specified directory. The script identifies hardcoded property strings
using regex and substitutes them with the appropriate
`openvino.properties` object references. A mapping of 63 properties was
created based on the documentation to facilitate accurate replacements.


## Testing

The refactoring was validated by executing the existing test suite in
`src/bindings/python/tests`.


## Script for Reference:

```python
import os
import re

# Dictionary mapping hardcoded property strings to ov.properties objects
properties_mapping = {'AFFINITY': 'ov.properties.affinity',
                      'AUTO_BATCH_TIMEOUT': 'ov.properties.auto_batch_timeout',
                      'AVAILABLE_DEVICES': 'ov.properties.available_devices',
                      'CACHE_DIR': 'ov.properties.cache_dir',
                      'COMPILATION_NUM_THREADS': 'ov.properties.compilation_num_threads',
                      'ENABLE_MMAP': 'ov.properties.enable_mmap',
                      'PERF_COUNT': 'ov.properties.enable_profiling',
                      'EXECUTION_DEVICES': 'ov.properties.execution_devices',
                      'FORCE_TBB_TERMINATE': 'ov.properties.force_tbb_terminate',
                      'INFERENCE_NUM_THREADS': 'ov.properties.inference_num_threads',
                      'LOADED_FROM_CACHE': 'ov.properties.loaded_from_cache',
                      'MAX_BATCH_SIZE': 'ov.properties.max_batch_size',
                      'NETWORK_NAME': 'ov.properties.model_name',
                      'NUM_STREAMS': 'ov.properties.num_streams',
                      'OPTIMAL_BATCH_SIZE': 'ov.properties.optimal_batch_size',
                      'OPTIMAL_NUMBER_OF_INFER_REQUESTS': 'ov.properties.optimal_number_of_infer_requests',
                      'RANGE_FOR_ASYNC_INFER_REQUESTS': 'ov.properties.range_for_async_infer_requests',
                      'RANGE_FOR_STREAMS': 'ov.properties.range_for_streams',
                      'SUPPORTED_PROPERTIES': 'ov.properties.supported_properties',
                      'DEVICE_ARCHITECTURE': "ov.properties.device.capabilities",
                      'OPTIMIZATION_CAPABILITIES': "ov.properties.device.capabilities",
                      'FULL_DEVICE_NAME': "ov.properties.device.full_name",
                      'DEVICE_GOPS': "ov.properties.device.gops",
                      'DEVICE_ID': "ov.properties.device.id",
                      'DEVICE_LUID': "ov.properties.device.luid",
                      'MULTI_DEVICE_PRIORITIES': "ov.properties.device.priorities",
                      'DEVICE_PROPERTIES': "ov.properties.device.properties",
                      'DEVICE_THERMAL': "ov.properties.device.thermal",
                      'DEVICE_TYPE': "ov.properties.device.type",
                      'DEVICE_UUID': "ov.properties.device.uuid",
                      'ALLOW_AUTO_BATCHING': 'ov.properties.hint.allow_auto_batching',
                      'ENABLE_CPU_PINNING': 'ov.properties.hint.enable_cpu_pinning',
                      'ENABLE_HYPER_THREADING': 'ov.properties.hint.enable_hyper_threading',
                      'EXECUTION_MODE_HINT': 'ov.properties.hint.execution_mode',
                      'INFERENCE_PRECISION_HINT': 'ov.properties.hint.inference_precision',
                      'MODEL_PTR': 'ov.properties.hint.model',
                      'MODEL_PRIORITY': 'ov.properties.hint.model_priority',
                      'PERFORMANCE_HINT_NUM_REQUESTS': 'ov.properties.hint.num_requests',
                      'PERFORMANCE_HINT': 'ov.properties.hint.performance_mode',
                      'SCHEDULING_CORE_TYPE': 'ov.properties.hint.scheduling_core_type',
                      "DEVICE_BIND_BUFFER": "ov.properties.intel_auto.device_bind_buffer",
                      "ENABLE_RUNTIME_FALLBACK": "ov.properties.intel_auto.enable_runtime_fallback",
                      "ENABLE_STARTUP_FALLBACK": "ov.properties.intel_auto.enable_startup_fallback",
                      "SCHEDULE_POLICY": "ov.properties.intel_auto.schedule_policy",
                      "DEVICE_BIND_BUFFER": "ov.properties.intel_auto.device_bind_buffer",
                      "ENABLE_RUNTIME_FALLBACK": "ov.properties.intel_auto.enable_runtime_fallback",
                      "ENABLE_STARTUP_FALLBACK": "ov.properties.intel_auto.enable_startup_fallback",
                      "SCHEDULE_POLICY": "ov.properties.intel_auto.schedule_policy",
                      "GPU_DEVICE_TOTAL_MEM_SIZE": "ov.properties.intel_gpu.device_total_mem_size",
                      "GPU_DISABLE_WINOGRAD_CONVOprop_lutION": "ov.properties.intel_gpu.disable_winograd_convoprop_lution",
                      "GPU_ENABLE_LOOP_UNROLLING": "ov.properties.intel_gpu.enable_loop_unrolling",
                      "GPU_EXECUTION_UNITS_COUNT": "ov.properties.intel_gpu.execution_units_count",
                      "GPU_MEMORY_STATISTICS": "ov.properties.intel_gpu.memory_statistics",
                      "GPU_UARCH_VERSION": "ov.properties.intel_gpu.uarch_version",
                      "LOG_LEVEL": "ov.properties.log.level",
                      "NUM_STREAMS": "ov.properties.streams.num",
                      "FP32": "ov.properties.device.Capability.FP32",
                      "BF16": "ov.properties.device.Capability.BF16",
                      "FP16": "ov.properties.device.Capability.FP16",
                      "INT8": "ov.properties.device.Capability.INT8",
                      "INT16": "ov.properties.device.Capability.INT16",
                      "BIN": "ov.properties.device.Capability.BIN",
                      "WINOGRAD": "ov.properties.device.Capability.WINOGRAD",
                      "EXPORT_IMPORT": "ov.properties.device.Capability.EXPORT_IMPORT",
                      "GPU_HW_MATMUL": "ov.properties.intel_gpu.CapabilityGPU.HW_MATMUL",
                      "GPU_SURFACE": "ov.properties.intel_gpu.MemoryType.surface",
                      "GPU_BUFFER": "ov.properties.intel_gpu.MemoryType.buffer",
                      }


def replace_properties_in_file(file_path):
    with open(file_path, 'r') as file:
        content = file.read()

    for old_prop, new_prop in properties_mapping.items():
        # Regular expression to match the property in both single and double quotes
        pattern = r'([\'"])' + re.escape(old_prop) + r'\1'
        replacement = new_prop
        content = re.sub(pattern, replacement, content)

    with open(file_path, 'w') as file:
        file.write(content)


def process_directory(directory_path):
    for root, dirs, files in os.walk(directory_path):
        for file in files:
            if file.endswith(".py"):
                full_path = os.path.join(root, file)
                replace_properties_in_file(full_path)


if __name__ == "__main__":
    directory_to_search = "src/bindings/python/tests"
    process_directory(directory_to_search)
```

---------

Co-authored-by: Anastasia Kuporosova <anastasia.kuporosova@intel.com>
2024-02-28 08:53:09 +00:00
Ilya Lavrenov 8a272e99d9
Don't use complex dependencies in Python API tests (#23104)
### Details:
 - Removed frontend dependencies from Python API tests
 - Moved torchvision preprocessing tests to pytorch layer tests folder.

### Tickets:
 - *ticket-id*
2024-02-28 08:21:57 +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
Anastasiia Pnevskaia a819605986
[TF FE] Test TF Hugging Face models (#22970)
### Details:
 - TF Hugging face tests

### Tickets:
 - 132904

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-02-26 12:41:09 +00:00
Jan Iwaszkiewicz 05b0fcaed3
[PyOV] Add doc strings to Python Remote API functions (#23030)
### Details:
 - Added documentation to Python Remote API functions and classes.

### Tickets:
 - *129478*
2024-02-23 09:23:48 +00:00
Andrei Kashchikhin 6145490ad4
[CI] [GHA] Investigate and resolve macOS workflows issues (#22840)
### Details:
 - The macOS x64 and arm workflows are broken.
- One of the issues is that `apt` retries are set unconditionally in
various reusable workflows when `apt` is only available on Linux.
- There was no `Smart_CI` job requirement for the `Samples` job in the
ARM mac workflow leading to it being broken.
- Several tests started failing, they are skipped in this PR with an
appropriate ticket.

### Tickets:
 - *132596*

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2024-02-21 17:49:53 +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
Jacek Pawlak 5e7e51dc77
Onetbb license alignment (#22838)
Removed old tbb license and added onetbb license

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2024-02-15 15:18:23 +04:00
Surya Siddharth Pemmaraju e68db009c7
Added missed ops to the op_support list (#22825)
### Details:
- Missed adding two ops to the ops list when implementation was already
present


### Tickets:
 - *ticket-id*

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2024-02-14 17:59:56 +00:00
Gorokhov Dmitriy e28c8dd193
[CPU] Dynamic quantization for compressed FullyConnected (#22738)
### Details:
- *This PR adds activations dynamic quantization support for compressed
FullyConnected*
 - OneDNN PR: https://github.com/openvinotoolkit/oneDNN/pull/229

### Tickets:
 - *[CVS-128361](https://jira.devtools.intel.com/browse/CVS-128361)*
2024-02-14 17:31:59 +00:00
Piotr Krzemiński 5150118e0c
[Ref][Core][CPU][Opset14] Inverse Operation (#22649)
Review of any part is more than welcome!

### Details:
 - Add Core for Inverse Operation
 - Register Inverse Operation in Python API
- Add Reference implementation for Inverse - LU decomposition with
partial pivoting
- Add CPU implementation for Inverse - Parallel LU decomposition with
partial pivoting
- Add tests - Reference, Visitor, Type prop, Shape Inference, Python,
Conformance, CPU, Template

### Tickets:
 - 131143
 - 131144
 - 131145
 - 131147
 - 131148
2024-02-14 11:58:38 +00:00
Roman Kazantsev aca2f76e42
[TF FE] Fix bad cast for tf.TensorShape to ov.PartialShape (#22813)
**Details:** Fix bad cast for tf.TensorShape to ov.PartialShape. The
error occurred in mobile-object-localizer-v1 model.

**Ticket:** CVS-132455

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-02-14 11:48:16 +00:00
Surya Siddharth Pemmaraju 19ba148b4f
Op support 2024.0 (#22745)
### Details:
 - Improved op support for 2024.0 release
 - Includes ops required for enabling customer model lightglue
 - Also added ops for lora fine tuning
 - Added support for options in aot autograd backend
- Added a new option to specify whether to use aot autograd
functionality
 - Added a new option to specify decompositions that need to be added
- Added a new option to specify ops that need to be disabled from
executing on OpenVINO


### Tickets:
 - https://jira.devtools.intel.com/browse/CVS-116702
 - https://jira.devtools.intel.com/browse/CVS-120276

---------

Co-authored-by: ynimmaga <yamini.nimmagadda@intel.com>
2024-02-13 12:13:42 +00:00
Jan Iwaszkiewicz b48b799aa8
[PyOV] Add missing is_shared flag in memory sharing scenarios (#22734)
### Details:
- Add missing flag propagation in containers dispatchers for memory
sharing scenarios.
- Expected boost in cases of already aligned memory storages with
`__array__` interface, i.e. PyTorch tensors.
 - Added testcases.
 
### Tickets:
 - *132092*
2024-02-09 17:02:01 +00:00
Vitaliy Urusovskij dfe0699503
Rename IE to OV (#22733) 2024-02-09 13:36:41 +00:00
Anastasiia Pnevskaia 0affac4c30
[TF FE] Fixed reading of string attributes in TF Decoder (#22752)
### Details:
 - Non utf-8 strings are passed as bytes.
 - String attr type now passed as ov.string.

### Tickets:
 - 131659
2024-02-09 12:46:31 +00:00
Ilya Lavrenov f5154711f7
Added NPU plugin to wheel (#22263)
### Details:
 - Allow to include NPU plugin as part of OpenVINO wheel.

### Tickets:
- CVS-130134
2024-02-07 17:27:57 +00:00
Katarzyna Mitrus a2818110cc
[Op][Ref][CPU] Extend Gather op with String support (#22465)
### Details:
 - Extend Gather op with String support for data input 
(agreed to do it within the same op version, existing reference
implementation is common for GatherBase and ready to handle strings, ref
changes are not needed, just evaluate supported types updated)
 - Enable fallback to the reference implementation from CPU plugin
- Extend Template and CPU plugin operator tests with string validation
(most of the changes are tests related)
### Tickets:
 - 130688
2024-02-06 06:00:39 +00:00
Anastasia Kuporosova 3fb591a0e6
[PyOV] Update imports for properties (#22594)
### Details:
 - *item1*
 - *...*

### Tickets:
 - *ticket-id*
2024-02-02 13:00:07 +00:00
Katarzyna Mitrus 5079abbdb9
[Op] FakeConvert update to use ov::element::Type (#22574)
### Details:
 -  FakeConvert update to use ov::element::Type
- The changes are backward compatible, FakeConvert constructors with
std::string are not removed

### Tickets:
 - 130680
2024-02-02 09:55:11 +00:00
Mateusz Mikolajczyk 2990586789
[Opset14] Initialization of opset14 (#22603)
### Details:
- *Initialization of opset14 to reduce number of repeated changes in
each operator*

### Tickets:
 - *N/A*
2024-02-02 08:43:54 +00:00
Anastasia Kuporosova fbfdebc39e
remove flake8-commas requirement (#22546) 2024-02-01 16:29:03 +00:00
Xuejun Zhai f0eca795c8
Deprecated API in openvino/core/validation_util.hpp (#22473)
* [Deprecated API] Remove api get_output_size()

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* [Deprecated API] Remove api has_no_labels()

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* [Deprecated API] Remove api generate_transpose_default_order() & is_valid_axes_order()

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* [Deprecated API] Remove api ov::default_label_evaluator()

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* [Deprecated API] Remove api ov::get_constant_from_source()

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* [Deprecated API] Remove api ov::evaluate_as_partial_shape()

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* [Deprecated API] Remove ov::get_constant_from_source90

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* [Deprecated API] Remove ov::normalize_axes()

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* [Deprecated API] Remove ov::normalize_axis()

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* [Deprecated API] Remove file openvino/core/validation_util.hpp

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* Fix clang format issue

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* Fix clang format issue

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* Fix error

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* Fix review comment

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* Fix review comment

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* Fix warning as error

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

* Update scan.cpp

* Fix warning as error

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>

---------

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
Co-authored-by: Pavel Durandin <pavel.durandin@intel.com>
2024-02-01 09:07:10 +00:00
dependabot[bot] bdf5ea7b5d
Update pytest requirement in /src/bindings/python (#22492)
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...8.0.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>
2024-02-01 09:06:42 +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 8225e79413
[PT FE] Reuse constants obtained with prim::GetAttr (#22530)
* [PT FE] Reuse constants obtained with prim::GetAttr

* Better formatting

* Add test and qtensor support

* Fix code
2024-01-30 15:34:49 +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
Jan Iwaszkiewicz 831abf98f1
[PyOV] Fix for affix decorator, allow Output instances (#22504) 2024-01-30 07:20:13 +00:00
Sun Xiaoxia 1616f1e849
Add description of deprecated property ov::Affinity (#22029)
* add description of affinity

* add @deprecated
2024-01-29 08:43:27 +00:00
Pawel Raasz 89225640a1
Remove ngraph/opsets API (#22390) 2024-01-28 13:19:51 +00:00
Pawel Raasz 97ea693030
[core] Migrate `FactoryRegistry` to API 2.0 (#22371)
* Migrate `FactoryRegistry` to API 2.0
- remove add custom factory
- remove FactoryAttributeAdapter

* Fix opset name in ONNX FE

* Corrections in include files

* Fix build issues

* Use OpSet in visitor tests instead FactoryRegister

* Integrate `FactoryRegistry` into `OpSet`

* Remove ngraph/factory_adapter.hpp

* Fix auto batch test warning for windows build
2024-01-27 21:51:11 +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
Jan Iwaszkiewicz 27746ce3a5
[PyOV] Adding prefixes and suffixes to FQ operator nodes (#22327)
* Add decorator to apply affixes

* Add new version of FQ to use affixes

* Add testcases

* Fix codestyle

* Make decorator only work on autogenerated Nodes

* remove print
2024-01-26 06:00:57 +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
abhinav231-valisetti 51cbbab2f4
Fixed IndexError list index out of range for Squeeze (#22326)
* fixed list index out of range error in node_decoder.py

* Improved and Modified as per review feedback

- Added a Model in the precommit_models for precommit validation.
- Removed skip and xfail marrks for the issue (129232 IndexError list
  index out of range for Squeeze)
- Added explicilty return None in node_decoder.py

* Update tests/model_hub_tests/tf_hub_tests/nightly_models

* Update tests/model_hub_tests/tf_hub_tests/nightly_models

* Update tests/model_hub_tests/tf_hub_tests/nightly_models

* Apply suggestions from code review

* Update tests/model_hub_tests/tf_hub_tests/precommit_models

* Update tests/model_hub_tests/tf_hub_tests/precommit_models

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-01-24 05:36:19 +00:00
dependabot[bot] 2811209860
Bump pytest-dependency from 0.5.1 to 0.6.0 in /src/bindings/python (#21913)
Bumps [pytest-dependency](https://github.com/RKrahl/pytest-dependency) from 0.5.1 to 0.6.0.
- [Release notes](https://github.com/RKrahl/pytest-dependency/releases)
- [Changelog](https://github.com/RKrahl/pytest-dependency/blob/develop/CHANGES.rst)
- [Commits](https://github.com/RKrahl/pytest-dependency/compare/0.5.1...0.6.0)

---
updated-dependencies:
- dependency-name: pytest-dependency
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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>
2024-01-23 00:57:03 +04:00
Pawel Raasz cb6eb83cc1
[core] ROI tensor can set new ROI shape (#22257)
* Allow set_shape for ROI tensor

* Change set ROI shape up to initial ROI size

* Fix test value

* Update ROI tensor expected error message
in python tests

* Minor changes in ROI tensor ctor
2024-01-22 11:57:25 +01:00
Maxim Vafin 92a1f959d6
[PT FE] Save state_dict names in Constant name (#22242)
* Save state_dict names in Constant name

* Fix issue with cert

* Fix cert issue again
2024-01-22 10:40:00 +01:00
Jan Iwaszkiewicz 1545ad08c4
[PyOV] Add optional string decoding for InferRequest and CompiledModel inference calls (#22106) 2024-01-18 13:07:33 +01:00
Jan Iwaszkiewicz 6bd9055440
[PyOV] Align add_extension methods across Python APIs (#22166) 2024-01-17 15:34:06 +01:00