Commit Graph

1141 Commits

Author SHA1 Message Date
Yongsheng Xu c208a881cb
[TF FE] Support Bincount operation (#23418)
### Details:
 - implemented Bincount op
 - simple test cases

### Tickets:
https://github.com/openvinotoolkit/openvino/issues/22071

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-03-15 19:20:45 +00:00
awayzjj 2725fb4e4d
[TF FE]: Support complex tensors for PadV2 operations (#22955) (#23388)
Closes https://github.com/openvinotoolkit/openvino/issues/22955
### Details:
- separate input into real and imaginary parts and handle them
separately by padding real or imag parts of padding value to them and
concatenate them finally.

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-03-15 13:59:13 +00:00
Roman Kazantsev bb4e1f5524
[TF FE] Support TF Keras TextVectorization and initialize HashTable (#23433)
**Details:** Support TF Keras TextVectorization and initialize HashTable

**Tickets:** 132668, 132692

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-03-15 08:37:40 +00:00
Mateusz Mikolajczyk 86c4474773
[PT FE][Opset14] Replace PT FE AlignTypes with opset14 ConvertPromoteTypes (#22770)
### Details:
- *Replace PT FE internal AlignTypes op with opset14
ConvertPromoteTypes*

### Tickets:
 - *129204*

---------

Co-authored-by: Pawel Raasz <pawel.raasz@intel.com>
Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2024-03-15 08:12:50 +00:00
Maxim Vafin 9d2d8e2cdc
[PT FE] Support dtype in full-like ops for FX (#23419)
### Details:
- *Support `aten.full_like.default`, `aten.new_full.default`,
`aten.new_ones.default`, `aten.new_zeros.default`, `aten.ones.default`,
`aten.ones_like.default`, `aten.zeros.default`,
`aten.zeros_like.default` in FX graph*

### Tickets:
 - *ticket-id*
2024-03-14 15:17:18 +00:00
Georgy Krivoruchko b3258d7c9a
[ONNX] Added telemetry for reporting unsupported ops (#23374)
### Details:
 - Added telemetry to ONNX Frontend
 - Improved reporting for nodes count
- Fixed issue when unsupported nodes could be in subgraphs of IF or LOOP
and doesn't fail conversion

### Tickets:
 - 127942, 134331
2024-03-14 11:42:17 +00:00
Georgy Krivoruchko 149381ef8c
[ONNX] Reduce* refactoring (#23429)
### Details:
 - Refactored source code to be able co-work with others
 - Removed unnecessary comments
 - Added check for a wrong input type
 - Added tests for an exception for wrong input type

### Tickets:
 - 125493
2024-03-14 10:47: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
Ekaterina Aidova f05391b6bc
[PT FE]: support aten::floor_divide_ and aten::movedim (#23446)
### Details:
 - *aten::floor_divide*
 - *aten::movedim*

### Tickets:
 - *ticket-id*
2024-03-14 09:29:38 +00:00
Maxim Vafin ad8d6ef35d
[PT FE] Support aten.reflection_pad{1,2,3}d.default (#23379)
### Details:
- *Support `aten.reflection_pad1d.default`,
`aten.reflection_pad2d.default` and `aten.reflection_pad3d.default`*

### Tickets:
 - *ticket-id*
2024-03-13 22:39:37 +00:00
Maxim Vafin 0afddfe02b
[PT FE] Support elu, celu, mish, shuffle ops (#23332)
### Details:
- *Support `aten::elu_`, `aten::celu`, `aten::celu_`, `aten::mish`,
`aten::mish_` TorchScript ops*
- *Support `aten.celu.default`, `aten.channel_shuffle.default`,
`aten.elu.default`, `aten.mish.default`, `aten.pixel_unshuffle.default`,
`aten.pixel_shuffle.default` FX ops*

### Tickets:
 - *ticket-id*

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2024-03-13 21:41:08 +00:00
Monal Singh ad584f5bef
Adding ADDV2 operation for complex numbers (#23178)
### Details:
- *Extended loader ADDV2 by propagating ComplexTypeMark from input to
output and to represent output complex type tensor as a floating-point
type tensor with an auxiliary dimension that concatenates real and
imaginary parts of complex tensor.*
 - *Performed addition for complex numbers.*
- *Wrapped the complex result with ComplexTypeMark and returned the
result*


Fixes #22946

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-03-12 21:51:40 +00:00
Luca Tam 81e236f51e
[TF FE] Supported complex tensors for Size operations (#23357)
### Details:
 - Added support for complex tensors and tests for it.

### Tickets:
 - #23244

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-03-12 21:49:24 +00:00
Maciej Smyk 0a1b724ed4
[DOCS] Rename of operations-specifications section for master (#23404)
Port from https://github.com/openvinotoolkit/openvino/pull/23198

Renamed "operations-specifications" file to "operation-specs".
2024-03-12 11:33:00 +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
Ilya Lavrenov 090bf9205f
Revert "Delete opset headers from transformations/utils" (#23350)
Reverts openvinotoolkit/openvino#22725

To fix RHEL build
2024-03-09 21:16:37 +04:00
Luca Tam c83c06cf27
[PT FE] aten::dot operation (#22978)
### Details:
- added `aten::dot` operation for pytorch models

### Tickets:
 - Closes #22074

---------

Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
2024-03-08 09:55:47 +00:00
Ivan Tikhonov 4d127d6565
Delete opset headers from transformations/utils (#22725)
### Details:
Refactoring

### Tickets:
 - *CVS-91401*
2024-03-08 09:10:56 +00:00
Siddhant Chauhan a97abd59ac
[ONNX] Extend ONNX Frontend with Function `Celu-12` (#22002)
### Details:
 - created implementation for `Celu-12` operator
 - created tests

### Tickets:
 - Closes #20543

---------

Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
Co-authored-by: Georgy Krivoruchko <georgy.krivoruchko@intel.com>
Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>
2024-03-05 04:02:28 +00:00
Maxim Vafin e2693404a8
[PT FE] Support aten::log_sigmoid (#23200)
### Details:
 - *Support `aten::log_sigmoid` in TS*
 - *Support `aten.expm1.default` and `aten.erfc.default` in FX*
 - *Unify unary ops testing*

### Tickets:
 - *CVS-134328*
2024-03-04 15:32:53 +00:00
linzs148 5d74236bca
[TF FE] Support complex type for Inv (#23085)
**Ticket:** https://github.com/openvinotoolkit/openvino/issues/22952

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-03-04 05:58:18 +00:00
Rinne 7d35d2a373
[TF FE] Add complex type support for rank op (#23118)
### Details:
 - Add complex type support for rank op
 - Add corresponding test of it

### Tickets:
 - I think I don't have a ticket id

### Related issues

#22956

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-03-01 11:08:52 +00:00
Roman Kazantsev fc80a39fa3
[TF FE] Move hash_table header to TF FE public (#23165)
**Details:** It is needed to duplicate the current implementation of
`LookupTableFindV2` in ov tokenizers and extend it to support string
type case based on OpExtension

**Ticket:** TBD

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-02-29 17:24:14 +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
Georgy Krivoruchko bd57987c36
[Core] Fixed shape inference for Reduce* (#22462)
### Details:
- Fixed shape inference for Reduce* in case axes come as an input
parameter

### Tickets:
 - 134036

---------

Co-authored-by: Evgenya Nugmanova <eva.my.link@gmail.com>
Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
2024-02-28 10:56:52 +00:00
Luca Tam b1bf9a404e
[PT FE] Add aten::expm1 (#22642)
### Details:
 *added aten::expm1 operation*
I'm having some problems during the tests; I think they're related to
the **frontend.cpp** file. My question is if I need to create a class to
support the expm1 operation and add it inside the **transform.cpp**
file? After that I would call it inside the frontend.cpp like this
`manager.register_pass<ov::frontend::pytorch::pass::Class_name>();`



### Tickets:
 - Closes #20578 

### Problem

E openvino._pyopenvino.OpConversionFailure: Check
'is_conversion_successful' failed at
src/frontends/pytorch/src/frontend.cpp:141:
E       FrontEnd API failed with OpConversionFailure:
E       Model wasn't fully converted.
E       Summary:
E       -- No conversion rule found for operations: aten::expm1

/opt/intel/openvino_2023.3.0/python/openvino/frontend/frontend.py:18:
OpConversionFailure

---------

Co-authored-by: Ekaterina Aidova <ekaterina.aidova@intel.com>
2024-02-28 10:51:56 +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
Roman Kazantsev 089fc0d5c1
[TF FE] MatrixBandPart operation for TensorFlow Hub models (#23082)
**Details:** `MatrixBandPart` is needed to support Keras StableDiffusion
model. This is reserved PR for
https://github.com/openvinotoolkit/openvino/pull/22447

**Ticket:** CVS-133786

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Co-authored-by: himanshugupta11002 <72141497+himanshugupta11002@users.noreply.github.com>
2024-02-26 19:45:24 +00:00
Maxim Vafin 5f64019ca6
Support OpExtension in frontends (#22961)
### Details:
 - *Support OpExtension in frontends*
 - *Support OPENVINO_FRAMEWORK_MAP for PyTorch FE*

### Tickets:
 - *CVS-132471*

---------

Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>
2024-02-23 14:23:15 +04:00
Pavel Esir 5d3f37091a
[PT FE] add boolean support for mul and add (#22984)
## Details:
- finalization of https://github.com/openvinotoolkit/openvino/pull/22045
- for boolean inputs of Add and Mul use logical Or and And ops
subsequently
 
### Tickets:
 - Closes *#21971*
 - _Ticket:_ CVS-133316
2024-02-21 15:08:53 +00:00
Siddhant Chauhan 311a4304c3
[ONNX] Extend ONNX Frontend with `com.microsoft.GatherND` (#21709)
### Details:
 - created implementation for `com.microsoft.GatherND`
 - created test

### Tickets:
 - Closes #17577

---------

Co-authored-by: Georgy Krivoruchko <georgy.krivoruchko@intel.com>
2024-02-21 13:51:11 +00:00
Pawel Raasz 2fe53b1590
[ONNX] Enable ONNX castlike tests (#22968)
### Details:
 - OV uses ONNX >= `1.15.0` which got bug fix for disabled tests.

### Tickets:
 - CVS-91151
2024-02-21 10:57:37 +00:00
Pawel Raasz e5d4634920
[ONNX][core] Fix resolving symlink for model external data (#22927)
### Details:
- Store in ONNX graph model directory without get absolute path. The
real `model_dir` path has to be resolved when used for example to load
external model data.
If symbolic links used the model real directory and exteranal data real
directory can be different. The real path for model data is resolved
after joining with model data location.
- Update `ov::utils::get_directory` function to resolve special cases
such as empty string and current folder.

### Tickets:
 - #22736
2024-02-19 17:58:59 +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
Pratham Ingawale dbc911129a
Adding ( [ONNX] Extend ONNX Frontend with Function Mish-18 ) (#22833)
### Details:
- *Expand the ONNX Frontend Capabilities by Incorporating the Mish-18
Function*

### Tickets:
 - *Closes #20550*
2024-02-19 12:04:05 +00:00
Pawel Raasz 3986f55da2
[core] Support OpenVINO compilation with cpp20 (#22784)
### Details:
 - Add support to OpenVINO to build it with standards newer than cpp11

### Tickets:
 - [CVS-128282](https://jira.devtools.intel.com/browse/CVS-128282)

---------

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
2024-02-17 19:10:20 +00:00
Oleg Pipikin f7ac54ce64
[DOCS] Remove some api 1.0 names and mentions from dev docs (#22873)
### Details:
 - Remove some api 1.0 names and mentions from dev docs
 
### Tickets:
 - CVS-132237
2024-02-17 11:01:45 +00:00
Maxim Vafin 92e165aa4c
[PT FE] Add support for aten::inverse (#22880)
### Details:
 - *Add support for `aten::inverse`*
- *Tests: couldn't replicate the operation in layer tests, but it exists
in TPSMM model, so test for this model is included*

### Tickets:
 - *CVS-123613*
2024-02-16 19:45:49 +00:00
Ekaterina Aidova 04d6d3dd66
[PT FE]: support aten::hardsigmoid_ (#22865)
### Details:
 - *support aten::hardsigmoid_ (inplace variant)*
enables rtmdet model from mmyolo


### Tickets:
 - *CVS-132283*
2024-02-16 13:53:39 +00:00
Roman Kazantsev 3d2c15ffd9
[TF FE][Layer tests] Run layer tests for TF FE by default and use_legacy_frontend for legacy FE (#22848)
**Details:** Run layer tests for TF FE by default and
use_legacy_frontend for legacy FE. Developers have to add
`use_new_frontend` for running layer tests for TF FE. This is not
convenient. Instead, let us use `use_legacy_frontend` option for legacy
FE that is rarely run.

**Tickets:** TBD

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-02-15 15:42:06 +00:00
Roman Kazantsev cc785d217e
[TF FE][DOC] Mark new operations with NEW mark (#22864)
**Details:** Mark new operations with NEW mark. In release notes, we
refer this documentation where user can find all NEW operation in the
current release.

**Ticket:** TBD

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-02-15 15:23:04 +00:00
Pavel Esir 88b792e864
[TF FE] Fix centernet and correct FloorDiv translator for signed integer type (#22684)
### Details:
- Centernet's topk operation returns large int32 values (greater than
1000000), even though they are integer `FloorDiv`/`Div(inp_1, inp_2) +
Floor` operation is performed in float16 and because of that it causes
accuracy problems.

- To solve this need to performs FloorDiv operation in integer with a
subgraph:
```
res = x / y; if x > 0 and y > 0
res = x / y - 1; if (x < 0 xor y < 0) and (x mod y != 0)
```
 - checked on separate bus: no degradations caused.

### Tickets:
 - CVS-130526

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-02-14 18:57:33 +00:00
Maxim Vafin a7e51923cc
[PT FE] Improve output names for tuples and dicts (#22821)
### Details:
 - *Improve output names for tuples and dicts*

### Tickets:
 - *CVS-130211*
2024-02-14 18:09:24 +00:00
Piotr Krzemiński a0be9ca772
[PT FE] Inverse Operation (#22783)
!!! To be merged after [this
PR](https://github.com/openvinotoolkit/openvino/pull/22649) !!!

Files concerned in this PR are only the following:
`src/frontends/pytorch/src/op/inverse.cpp`
`src/frontends/pytorch/src/op_table.cpp`
`tests/layer_tests/pytorch_tests/test_inverse.py`

### Details:
 - Add Inverse operation to PyTorch frontend

### Tickets:
 - 131644
2024-02-14 12:10:16 +00:00
Evgenya Nugmanova 2937841ad6
Supports onnx LayerNormalization-17 via opset6::MVN (#22787)
### Details:
 - *LayerNormalization-17 translation got more compact*
 - *Three output translation is unavailable anymore*

### Tickets:
 - *CVS-132128*
2024-02-13 15:07:53 +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
Ekaterina Aidova 9bf497825e
[PT FE]: support boolean input in aten::all (#22764)
### Details:
 - *item1*
 - *...*

### Tickets:
 - *ticket-id*
2024-02-12 18:10:44 +04:00
Roman Kazantsev 1004227fa3
[TF FE] Report uninitialised variable in case TFVariable remains (#22772)
**Details:** Report uninitialised variable in case TFVariable remains

**Ticket:** CVS-131589

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-02-12 10:47:48 +00:00
Vitaliy Urusovskij dfe0699503
Rename IE to OV (#22733) 2024-02-09 13:36:41 +00:00