Commit Graph

658 Commits

Author SHA1 Message Date
Jorge Ragde 8eaa65e026
[TF FE Tests] Change HSVToRGB Unit Test To Test Grayscale Image (#24935)
### Details:
- Currently, the unit test for HSVToRGB is creating a tensor of all ones
in the Grayscale special case as mentioned in
[#24875](https://github.com/openvinotoolkit/openvino/pull/24875). Since
the images are expected to be in HSV and not RGB format, this will
create images that are green, and not gray. Grayscale in HSV can be
achieved by creating a tensor with HSV entries of [0, 0, .5].

### Tickets:
 - N/A

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-06-11 14:16:48 +00:00
Maxim Vafin 4be6025fae
[PT FE] Fix segfault when prim::If can't be converted (#24914)
### Details:
- *When scripting upsample creates `prim::If` depending from input
shape, to determine which version of upsample to use: 1d, 2d or 3d. This
is not supported by openvino, but this PR fixes segfault that happen in
this case.*

### Tickets:
 - *#24270*
2024-06-10 11:35:58 +00:00
Jorge Ragde 8646aff9e0
[TF FE] Support HSVToRGB operation for TensorFlow (#24875)
### Details:
- Using #24033, implemented and registered loader for HSVToRGB using
already existing logic.
 - Created unit test test_tf_HSVToRGB.py

### Tickets:
 - #24791 
 
Currently, my pytest is saying that for the unit test and for
test_tf_AdjustHue.py and test_tf_AdjustSaturation.py the loader is not
found.

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-06-10 07:56:08 +00:00
Ekaterina Aidova 1863f58a82
[PT FE]: support aten::hann_window (#24824)
### Details:
 - *aten::hann_window"

### Tickets:
 - *CVS-143016*

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-06-10 07:35:59 +00:00
Roman Kazantsev 65b5b8e1b7
[MOC] Implement EliminateLoopInputsOutputs (#24786)
**Details:** EliminateLoopInputsOutputs transformation helps to avoid an
isolated sub-graphs `Parameter->Result` in a body graph of `Loop` and
`TensorIterator`. Such sub-graphs are useless and can by-pass `Loop`
operation.

**Ticket:** 142440

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Co-authored-by: Evgeny Kotov <evgeny.kotov@intel.com>
Co-authored-by: Tikhonov Ivan <ivan.tikhonov@intel.com>
2024-06-04 12:37:16 +00:00
Katarzyna Mitrus 142114ccbc
[Op] Squeeze update - no throw on non-squeezable dims (#24715)
### Details:
- Changes needed to enable Squeeze (and models) with axes pointing to
non-squeezable dims (currently ov throws an error for such case) -
considered as backward compatible change
- If agreed to update functionality within the same version of the op,
actual changes are needed only in shape infer related functions to cover
**Template, CPU and GPU plugins**:
    -  src/core/shape_inference/include/squeeze_shape_inference.hpp
    -  src/plugins/intel_cpu/src/shape_inference/custom/reshape.cpp
    -  The rest of the changes are test related.
 - Pytorch FE Squeeze test enabled - passed

### Tickets:
 - 142387
2024-06-03 09:59:07 +00:00
Roman Kazantsev 3497133dc4
[TF FE] Xfail test for Rint on arm (#24810)
**Details:** In pre-commit we observe sporadic failure of Rint test on
arm

**Tickets:** TBD

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-06-03 12:12:42 +04:00
duydl 5ea0e96fc2
[TF FE] Support AdjustHue operation (#24769)
### Details:
- Adapt from #24511 . Converting code repeated. Instead import from
there?
- Converting logic a little different from
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/image/adjust_hue_op.cc
. Maybe less efficient?

### Tickets:
 - #24033 

Sorry, commit history is wrong, should have created branch from latest
upstream.

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-06-03 00:09:09 +04:00
duydl 3e3bea8985
[TF FE] Support AdjustSaturation operation (#24511)
### Details:
- Parse logic from
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/image/adjust_saturation_op.cc
to openVINO ops

### Tickets:
 - #24034

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-05-29 06:40:23 +00:00
Ekaterina Aidova 4cf2ae0192
[PT FE]: fix segfault when resolving nested dict as model input (#24719)
### Details:
 - *item1*
 - *...*

### Tickets:
 - *ticket-id*
2024-05-27 21:24:01 +00:00
Daniel 30d6e85505
[CPU] Inconsistent behavior/errors of Equal operation in comparison with TF framework (#24640)
Fix for TEST_DEVICE=CPU comparison of float16 infinite values

### Details:
- Introduced specialization for conversion float16->float32 in the CPU
plugin
 - xfail in layer tests is disabled for CPU device

### Tickets:
 - *24245*
2024-05-27 06:55:36 +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
Mustafa Cavus 0fe524bcbe
Unit test for dynamic expand fixed (#24684)
### Tickets:
 - CVS-142090
2024-05-25 16:37:08 +00:00
Andrei Kashchikhin f028ecf0f7
[CI] [GHA] Investigate and mitigate Mac workflows (#24631)
### Tickets:
 - *142049*
2024-05-23 19:58:53 +00:00
Mustafa Cavus 4b8641ee3f
Added quantized_decomposed quantization unit tests (#24388)
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
Co-authored-by: Surya Siddharth Pemmaraju <surya.siddharth.pemmaraju@intel.com>
Co-authored-by: Yamini Nimmagadda <yamini.nimmagadda@intel.com>
2024-05-23 10:15:11 +00:00
Mustafa Cavus 87f25aa14b
Torchfx dynamic shapes initial (CVS-139182) (#24578)
### Details:
 - Enabling dynamic shapes with aot_autograd

### Tickets:
 - CVS-139182

---------

Co-authored-by: Przemyslaw Wysocki <przemyslaw.wysocki@intel.com>
2024-05-22 14:04:16 +00:00
Surya Siddharth Pemmaraju e7c60bb18a
Fixed bug with inlined inputs (#24448)
### Details:
- Fixed bug with inlined inputs for fx decoder which were being added as
parameters and are not needed.

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

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2024-05-22 07:29:36 +00:00
Mateusz Mikolajczyk 23b54736e4
[Opset15] Implementation for EmbeddingBagPacked and EmbeddingBagOffsets ops (#24541)
### Details:
- *Create PoC implementation for EmbeddingBag Offsets and Packed that
introduce mode 'mean'*
 - *Add Core, Reference and CPU implementation for both ops*

Specification will be added in separate PR

### Tickets:
 - *138229*

---------

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2024-05-21 09:07:14 +00:00
Roman Kazantsev b6609e830f
[TF FE] Support adjoint mode for MatrixInverse operation (#24581)
**Details:** After fix
https://github.com/openvinotoolkit/openvino/pull/24071, we are ready
support `adjoint` for MatrixInverse

**Ticket:** TBD

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-05-20 11:07:54 +00:00
Maxim Vafin 87d6f201aa
[PT FE] Support converting 16bit models by patching (#24482)
### Details:
- *Add patch function to make 16bit models traceable. This reduce memory
consumption and time spent during conversion of models that are natively
saved in 16bit precision*

### Tickets:
 - *CVS-136828*
2024-05-20 07:08:03 +00:00
Maxim Vafin ab6e0f8333
[PT FE] Support inplace aten::sqrt, aten::rsqrt, aten::clamp_{min, max} (#24354)
### Details:
- *Support inplace `aten::sqrt_`, `aten::rsqrt_`, `aten::clamp_min_`,
`aten::clamp_max_`*

### Tickets:
 - *ticket-id*
2024-05-20 07:05:23 +00:00
Maxim Vafin 8e8801f386
[PT FE] Support torch.any and torch.all on both FX and TS side (#24553)
### Details:
 - *Support torch.any and torch.all on both FX and TS side*
 - *Support aten::isfinite, aten::isinf and aten::isnan*

### Tickets:
 - *ticket-id*
2024-05-17 09:13:28 +00:00
Yamini Nimmagadda fa9d519bc2
Added torchdynamo backend entry point in package setup (#24178)
With this change, users don't have to add "import openvino.torch" in
their applications. Providing torch.compile(model, backend="openvino")
automatically imports the necessary modules. This simplifies the user
experience and enables PT2 based benchmarking OOB without any changes. .

More information can be found here:
https://github.com/pytorch/pytorch/pull/124536

JIRA: CVS-139370

---------

Co-authored-by: Surya Siddharth Pemmaraju <surya.siddharth.pemmaraju@intel.com>
2024-05-13 18:51:12 +00:00
Roman Kazantsev ae0f4caa37
[TF FE] Move conversion of BlockLSTM to loader stage (#24316)
**Details:** To make conversion of BlockLSTM more robust, it is better
to convert it at loaders stage. Due to latest feature with handling
resources, the logic has to remain some auxiliary sub-graphs tills
transformation stage and this affects some pattern matching. The
solution is to move transformation for single op to loader stage.

**Ticket:** 138102

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-05-10 14:33:36 +00:00
Roman Kazantsev 79d83c282d
[TF FE] Get back tests switched off by mistake (#24367)
**Details:** Currently they are switched on for legacy frontend that is
incorrect.

**Ticket:** TBD

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-05-05 13:36:08 +00:00
Adithya Hegde Kota d264eb40b8
[TF FE]: Support complex tensors for SegmentSum operations (#23676)
### Details:
 - *Edited Tests for Segment Sum*



Resolves #23241

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-05-04 15:25:08 +00:00
Roman Kazantsev 853a48a5af
[TF FE] Move GRUBlockCell conversion to loaders stage (#24332)
**Details:** It should improve conversion time and make conversion more
robust to source changes.

**Ticket:** TBD

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-05-02 14:34:51 +00:00
Roman Kazantsev f67e108dba
[TF FE] Reduce redundant deps and routines for layer tests (#24314)
**Details:** Reduce redundant deps and routines for layer tests

**Ticket:** TBD

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-04-30 08:24:24 +00:00
Maxim Vafin 1de6329319
[PT FE] Support negative indices for aten::set_item (#24027)
### Details:
 - *Support negative indices for aten::set_item*

### Tickets:
 - *CVS-132747*
2024-04-25 11:24:45 +00:00
Keyon Jie 6f599c05dd
[TFL FE] GELU implementation (#23669)
Add Gelu and corresponding layer test support.

---------

Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Co-authored-by: Georgy Krivoruchko <georgy.krivoruchko@intel.com>
Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
Co-authored-by: Evgenya Nugmanova <evgeniia.nugmanova@intel.com>
2024-04-24 21:55:26 +00:00
Maxim Vafin 224acd355a
[PT FE] Run GPU with FP32 hint when layer test is FP32 (#23511)
### Details:
 - *Run GPU with FP32 hint when layer test is FP32*
 - *Xfail tests unsupported on GPU*

### Tickets:
 - *ticket-id*
2024-04-24 12:44:43 +00:00
Roman Kazantsev 81f7129085
[TF FE] Extend layer tests for LookupTableFindV2 with string keys (#24138)
**Details:** Extend layer tests for LookupTableFindV2 with string keys.
Merge after
https://github.com/openvinotoolkit/openvino_tokenizers/pull/120

**Ticket:** TBD

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-04-22 08:02:26 +00:00
Roman Kazantsev 5a18bc1277
[TF FE] Extend StringSplitV2 layer tests and fix warnings (#24148)
**Details:** Extend StringSplitV2 layer tests and fix warnings. Merge
after https://github.com/openvinotoolkit/openvino_tokenizers/pull/121

**Ticket:** TBD

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-04-21 21:23:24 +00:00
Mikhail Ryzhov a6265c136b
[GHA] Move tokenizers build to reusable job (#23909)
### Details:
 - Move tokenizers build to reusable job

### Tickets:
 - *132908*

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-04-19 19:12:17 +00: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 a6d64cf3e1
[TF FE] Xfail Mod and FloorDiv tests and correct Conv3D test (#24126)
**Details:** Xfail Mod and FloorDiv tests due to sporadic inference
mismatch results. Correct Conv3D test to decrease workload to pass
timeout.

**Tickets:** 138904, 138713

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-04-19 16:49:09 +02:00
Roman Kazantsev 176e63c5e9
[TF FE] Fix layer tests for binary operations (#24080)
**Details:** Fix layer tests for binary operations

**Ticket:** TBD

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-04-17 12:47:24 +00:00
awayzjj 9331eb54da
[TF FE]: Support Rint operation for TensorFlow (#24059)
Closes https://github.com/openvinotoolkit/openvino/issues/24032
### Details:
 - Support Rint operation for TensorFlow.

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-04-17 10:04:59 +00:00
Roman Kazantsev 1496229908
[TF FE] Switch TF2 Keras layer tests to precommit mark (#24010)
**Details:** Switch TF2 Keras layer tests to precommit mark.

**Ticket:** TBD

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-04-15 14:14:14 +00:00
Luca Tam e3fbb5733b
[PT FE] Support aten::aminmax for pytorch models (#23879)
### Details:
 - Implemented `aten::aminmax` operation
 - Implemented test for aminmax op
 - registered inside `op_table.cpp`

### Tickets:
 - #23327

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2024-04-15 09:46:05 +00:00
Hongbo Wei 0287267a8d
[TF FE]: Support MatrixInverse operation for TensorFlow (#23881)
This pull request adds support for the TensorFlow "**MatrixInverse**"
operation to OpenVINO's TensorFlow Frontend (TF FE). It implements a new
loader function translate_matrix_inverse_op that translates the
TensorFlow operation into the equivalent OpenVINO Inverse operation
(from opset-14) for both real-valued and complex-valued inputs.

Addresses issue:
#[22957](https://github.com/openvinotoolkit/openvino/issues/22957)

Hi Roman @rkazants, could you please review my work, thank you!

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-04-13 17:26:56 +00:00
Roman Kazantsev 0852da2a13
[TF FE] Remove MO legacy deps for TF FE layer tests (#24005)
**Details:** Remove MO legacy deps for TF FE layer tests

**Ticket:** TBD

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-04-12 14:52:54 +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
Luca Tam bf832a481d
[TF FE] Add layer test for Round operation (#23921)
### Details:
 - Added tests for Round op for both real and complex tensors
 - Added support for handling complex tensors for the Round operation

### Tickets:
 - #23237

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-04-10 10:14:42 +00:00
Roman Kazantsev 7a10b94cc0
[TF FE] Support StringHashBucketFast operation (#23946)
**Details:** Support StringHashBucketFast operation. Needed for several
models from TF Hub. Merge after
https://github.com/openvinotoolkit/openvino_tokenizers/pull/115

**Ticket:**

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-04-10 04:17:55 +00:00
Maxim Vafin 3caf888636
[PT FE] Resolve issue with If test (#23898)
### Details:
 - *Resolve issue with `If` test*

### Tickets:
 - *CVS-123727*
2024-04-08 15:04:12 +00:00
Maxim Vafin 621b025bef
[PT FE] Fix coverity issues (#23834)
### Details:
 - *Fix coverity issues*
 - *Removed unfinished list support POC*

### Tickets:
 - *CVS-136547*
2024-04-05 10:46:17 +00:00
Roman Kazantsev 740be35b8f
[TF FE] Add layer test for RaggedTensorToSparse (#23850)
**Details:** Add layer test for RaggedTensorToSparse. Needs to be merged
after https://github.com/openvinotoolkit/openvino_tokenizers/pull/103

**Ticket:** TBD

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-04-04 16:04:28 +00:00
Surya Siddharth Pemmaraju a5cf8b30d5
Quantization support for torch.compile (#23779)
### Details:
 - Added support for Quantization in torch.compile
 - Removed Torchscript backend
 - Removed Environment variables for setting options

### Tickets:
 - https://jira.devtools.intel.com/browse/CVS-107243
 - https://jira.devtools.intel.com/browse/CVS-131521

---------

Co-authored-by: ynimmaga <yamini.nimmagadda@intel.com>
2024-04-03 12:36:56 +00:00
Roman Kazantsev 33206de427
[Layer tests] Use legacy MO API only for legacy tests and optimize imports (#23821)
**Details:** Use legacy MO API only for legacy tests and optimize
imports

**Ticket:** TBD

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-04-03 08:31:27 +00:00