Commit Graph

160 Commits

Author SHA1 Message Date
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 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
Pranshu Shukla 2bfa1ee01d
[TF FE] Support complex tensors for Cumsum operation (#23500)
### Details:
- Extends support for CumSum operation to complex types
 - Addresses issue #22949

---------

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-03-30 22:37:48 +00:00
Pranshu Shukla 8482121fc4
[TF FE] Support complex tensors for BiasAdd operation (#23218)
Extending support for BiasAdd operation to complex tensors.
Resolves Issue: #22945

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2024-03-30 14:19:52 +00:00
Luca Tam 5fac80fc78
[TF FE] Supported Complex tensor for AddN op (#23614)
### Details:
- extended addN.cpp file to support complex tensor
- extended test_tf_addN.py with test for complex input

### Tickets:
 - #22944

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-03-28 18:23:35 +00:00
rghvsh dbef32e292
[TF FE] Support Angle operation for TensorFlow models (#23028)
### Details:
 - *Support Angle operation for TensorFlow models*
 
### Tickets:
 - Closes #22083

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-03-24 19:48:22 +00:00
Monal Singh d5a664a296
[TF FE] Support complex tensors for OnesLike operation (#23445)
### Details:
 - *Adding support for OnesLike operation on complex type tensor*
- Closes #22953

---------

Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-03-21 14:17:53 +00:00
Monal Singh 9f08e406a2
[TF FE] Support complex tensors for Reciprocal operations (#23355)
### Details:
- *Extended loader Reciprocal 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 reciprocal for complex numbers.*
- *Wrapped the complex result with ComplexTypeMark and returned the
result*

### Tickets:
 - #23234

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-03-19 16:22:37 +00:00
Monal Singh 59c6314764
[TF FE] Support ApproximateEqual operation for TensorFlow (#23351)
### Details:
 - *Adding operation support for ApproximateEqual operation*
 - *Addresses issue #22082 *

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-03-18 07:04:48 +00:00
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
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
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
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
Ivan Tikhonov 4d127d6565
Delete opset headers from transformations/utils (#22725)
### Details:
Refactoring

### Tickets:
 - *CVS-91401*
2024-03-08 09:10:56 +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 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
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
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
Pawel Raasz 53878b6085
[core] Move validation_util header under openvino/core (#22707)
### Details:
- Move validation_util.hpp under `openvino/core` to include it same way
as others OV code
   `#include "openvino/core/validation_util.hpp"`

### Tickets:
 - [CVS-131972](https://jira.devtools.intel.com/browse/CVS-131972)
2024-02-07 19:56:43 +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
Jorge Ragde 79b4645a3b
[TF FE] Support Conj operation (#21947)
* Conjugate

* Moved common logic into make_conj helper.

* Update src/frontends/tensorflow_common/src/op/conj_transpose.cpp

* Moved helper to conj_transpose

* Applied helper to both conj and conj_transpose

* Deleted conj.cpp

* Update src/frontends/tensorflow_common/src/op/conj_transpose.cpp

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

* Update src/frontends/tensorflow_common/src/op/conj_transpose.cpp

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

* Removed additional Shape:: scope resolution from get_conj helper

* Added Conj and ConjugateTranspose to supported ops

* Update src/frontends/tensorflow/src/op_table.cpp

Change "Conjugate" to "Conj"

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

* Apply suggestions from code review

* Removed perms call and moved test data directly to parametrize macro

* Apply suggestions from code review

* Apply suggestions from code review

* Changed input types from float32 to complex64

* Changed input type back to np.float32 and removed real tensor test

* Update src/frontends/tensorflow_common/src/op/conj_transpose.cpp

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
Co-authored-by: Michal Lukaszewski <michal.lukaszewski@intel.com>
2024-01-31 19:09:14 +00:00
Roman Kazantsev 688279ab37
[TF FE] Support LookupTableFindV2 for integer keys (#22517)
* [TF FE] Support LookupTableFindV2 for integer keys

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

* Update src/frontends/tensorflow/include/openvino/frontend/tensorflow/variable.hpp

* Update src/frontends/tensorflow/src/hash_table.hpp

* Update src/frontends/tensorflow/src/op/lookup_table_find.cpp

* Fix build

* Override get_value for HashTable

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

* Fix translator for lookup_table_find

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

* Update lookup_table_find to support unsorted keys with holes

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

* Test both HashTable v1 and v2

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-30 11:45:26 +00:00
Roman Kazantsev 5381522b35
[TF FE] Remove use of heavy opset header in unit-tests (#22449)
* [TF FE] Remove use of heavy opset header in unit-tests

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

* Apply suggestions from code review

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-26 17:58:50 +00:00
Anastasiia Pnevskaia aefe19ca89
[TF FE] Logic for keeping WriteFile in graph. (#22304)
* Added logic to keep WriteFile in graph.

* Corrected code style, added test.

* Minor correction.

* Corrected check_supported_ops.py.

* Tests fix.

* Serialize fix.

* Code style.

* Moved KeepInGraphOp to TF internal ops.

* Minor fix.

* Added validate_and_infer_types().

* Code style.

* Moved WriteFile translator.

* Corrections.

* Code style.

* Applied comments.

* Minor correction.

* Minor correction.

* Added comments, minor corrections.
2024-01-26 14:18:57 +00:00
Roman Kazantsev 7d17862a5b
[TF FE] Avoid use of heavy opset header in transformations (#22407)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-25 17:13:45 +00:00
Roman Kazantsev 0e8eb19712
[TF FE] Support mutable tensors produced by variables and resources (#22270)
* [TF FE] Support mutable tensors produced by variables and resources

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

* Update documentation

* Fix build and move variable.hpp to public

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

* Add missing variable.hpp header file

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

* Add layer tests for Assign operations

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

* Add translators for AssignVariable operations

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

* Document new operations

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

* Add layer tests for AssignVariableOps

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

* Fix build

* Fix code-style issue

* Update src/frontends/tensorflow/include/openvino/frontend/tensorflow/node_context.hpp

* Update src/frontends/tensorflow/include/openvino/frontend/tensorflow/variable.hpp

* Update src/frontends/tensorflow/include/openvino/frontend/tensorflow/variable.hpp

* Update src/frontends/tensorflow/src/op/assign.cpp

* Update src/frontends/tensorflow/src/op/assign_add.cpp

* Update src/frontends/tensorflow/src/op/assign_sub.cpp

* Do not change node name for read_variable_op

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

* Make assign_variable_op backward-compatible

* Fix layer tests to run them in parallel

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

* Fix testing model

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-24 18:57:06 +01:00
Roman Kazantsev 1ccde164c5
[TF FE] Speed-up compilation by avoiding opset header (#22228)
* [TF FE] Speed-up compilation by avoiding opset header

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

* Fix build

* Fix build

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

* Fix build issue for dynamic_partition

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

* Fix build issue for matmul and matrixdiag

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

* Fix build for space_to_batch_nd

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

* Fix build for shape

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-18 12:21:50 +01:00
Anastasiia Pnevskaia 41195a4b2a
[TF FE] Set single output tensor name for TF1 formats. (#21075)
* Set single output tensor name for TF1 and TF2 formats.

* Removed debug output.

* Added param for defining if tensor names need indices.

* Clang format.

* Comment corrected.

* Fixed TF1 layer tests.

* Minor correction.

* Fixed errors.

* Error fixed.

* Bug fixes.

* Bug fix.

* Code style, minor corrections.

* Added comments.

* Update src/frontends/tensorflow/src/frontend.cpp

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

* Added tests.

* Optimize imports.

* Code correction.

* Removed WA

* Small correction.

* Moved names alignment logic to adjust_saved_model_names().

* Removed changes in utils.

* Fixed errors, applied comments.

* Test fixed.

* Removed changes from utils.

* Removed commented code.

* Added note.

* Minor corrections.

* Code style.

* Changed set_node_name, removed not needed changes.

* Clang format.

* Fixed names for output places in input model.

* Fixed tensor names of identity.

* Added ticket number.

* Added ticket numbers.

* Added ticket numbers.

* Code style.

* Corrected tests.

* Update tests/layer_tests/ovc_python_api_tests/test_tf.py

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

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-01-15 21:53:43 +04:00
Roman Kazantsev b0bc95f3e0
[TF FE] Implement native support of string tensors for TensorFlow models (#22024)
* [TF FE] Implement native support of string tensors for TensorFlow models

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

* Update unit-test for model with string tensor

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

* Update graph comparator for string Constant comparison

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

* Update unit-test

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

* Add layer tests for string tensor

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2024-01-09 20:54:55 +01:00
sami0i e2c9f24400
[TF FE] Support Div operation for TensorFlow (#21730)
* Support Div operation for TensorFlow

* Update test_tf_Div.py

* Update div.cpp

* Update op_table and common_op_table

* update translate_div_op

* print inputs

* update div.cpp

* set m_pythondiv to false

* update div.cpp

* update div.cpp

* Update tests/layer_tests/tensorflow_tests/test_tf_Div.py

* Update tests/layer_tests/tensorflow_tests/test_tf_Div.py

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2024-01-07 15:04:12 +00: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
Abdulrahman Adel Ibrahim ded49387b0
Support ConjugateTranspose for TF (#21586)
* conj transpose

* Update

* Fix Mistakes

* Update src/frontends/tensorflow_common/src/op/conj_transpose.cpp

Co-authored-by: Anastasiia Pnevskaia <anastasiia.pnevskaia@intel.com>

* Update src/frontends/tensorflow/src/op_table.cpp

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

* """Test the conjugate transpose layer."""

* u

* Resolve Issues

* Revert "conj transpose"

This reverts commit 27833f348a.

* Update ConjTranspose

* Update src/frontends/tensorflow_common/src/op/conj_transpose.cpp

* update  clang-format | fix test errors

* Update src/frontends/tensorflow_common/src/op/conj_transpose.cpp

* fix test error

* Update src/frontends/tensorflow_common/src/op/conj_transpose.cpp

---------

Co-authored-by: Anastasiia Pnevskaia <anastasiia.pnevskaia@intel.com>
Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-12-30 20:29:48 +00:00
Roman Kazantsev 0c87a19333
[TF FE][GitHub issue] Extend Upsampling2D support for more input types (#21870)
* [TF FE][GitHub issue] Extend Upsampling2D support for more input types

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

* Fix output type

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-12-26 12:59:38 +01:00
Anastasiia Pnevskaia 12faade22f
[TF FE] Complex type support extended for Separate Bass model. (#21477)
* Complex type support extended, fixed some errors.
* Tests correction.
* FloorDiv, TensorListConcatV2 fixed.
* FloorDiv test added.
* Corrected imports.
2023-12-21 15:17:12 +04:00
Mateusz Mikolajczyk a1e296eaa8
[TF FE][Opset13] Enable Multinomial operator in TF frontend (#20646)
* Enable Multinomial operator in TF frontend

* Implement requested changes

* Update tests/layer_tests/tensorflow_tests/test_tf_Multinomial.py

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

* Align with CPU implementation

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-12-18 12:00:04 +01:00
Ahmad Chalhoub c087fb4206
support UniqueWithCounts for TF FE (#21565)
* support UniqueWithCounts for TF FE

* set node name and fix code style
2023-12-15 18:33:29 +04:00
Tomasz Jankowski 0649865372
[Core] Move validation util into dev API (#21501)
* Move infer_convolution_forward to dev API

* Move infer_auto_padding to dev API

* Move evaluate_as_partial_shape to dev API

* Move default_label_evaluator to dev API

* Move generate_transpose_default_order to dev API

* Move is_valid_axes_order to dev API

* Move has_no_labels to dev API

* Remove usage of legacy get_constant_from_source

from core and transformations

* Move normalize_axes to dev API

* Move normalize_axis to dev API

* Deprecate functions to be removed later
2023-12-14 10:10:46 +01:00
Ahmad Chalhoub aa69f00e8d
support MulNoNan for TF (#21459)
* support MulNoNan for TF

* update test_tf_MulNoNan

* Update src/frontends/tensorflow_common/src/op/mul_no_nan.cpp

* update zeros const method

* Update src/frontends/tensorflow_common/src/op/mul_no_nan.cpp

* Update src/frontends/tensorflow_common/src/op/mul_no_nan.cpp

* Update src/frontends/tensorflow_common/src/op/mul_no_nan.cpp

* Update src/frontends/tensorflow_common/src/op/mul_no_nan.cpp

* Update src/frontends/tensorflow_common/src/op/mul_no_nan.cpp

* Update tests/layer_tests/tensorflow_tests/test_tf_MulNoNan.py

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-12-07 16:31:41 +00:00
rghvsh 55d7765704
[TF FE] Support Atan2 operation for TensorFlow models (#21076)
* Create atan2.cpp

* Update common_op_table.hpp

Adds atan2 operation to the list

* Update op_table.cpp

Adds atan2 to the list of BinaryOp.

* Create test_tf_Atan2.py

Adds test for Atan2.

* Update src/frontends/tensorflow_common/src/op/atan2.cpp

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

* Update src/frontends/tensorflow/src/op_table.cpp

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

* Update atan2.cpp

* Update src/frontends/tensorflow_common/src/op/atan2.cpp

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

* Update atan2.cpp

declares x and y , explicitly mentions conditions

* Update atan2.cpp

* Update atan2.cpp

Adds versions.

* Update atan2.cpp

adds namespace

* Update src/frontends/tensorflow_common/src/op/atan2.cpp

* Update src/frontends/tensorflow_common/src/op/atan2.cpp

* Update src/frontends/tensorflow_common/src/op/atan2.cpp

* Update src/frontends/tensorflow_common/src/op/atan2.cpp

* Update src/frontends/tensorflow_common/src/op/atan2.cpp

* Update src/frontends/tensorflow_common/src/op/atan2.cpp

* Update src/frontends/tensorflow_common/src/op/atan2.cpp

* Update src/frontends/tensorflow_common/src/op/atan2.cpp

* Update atan2.cpp

Clang format

* Update atan2.cpp

* Update src/frontends/tensorflow_common/src/op/atan2.cpp

* Update src/frontends/tensorflow_common/src/op/atan2.cpp

* Update src/frontends/tensorflow_common/src/op/atan2.cpp

* Update src/frontends/tensorflow_common/src/op/atan2.cpp

* Update src/frontends/tensorflow_common/src/op/atan2.cpp

* Update src/frontends/tensorflow_common/src/op/atan2.cpp

* Update src/frontends/tensorflow_common/src/op/atan2.cpp

* Update src/frontends/tensorflow_common/src/op/atan2.cpp

* Update src/frontends/tensorflow_common/src/op/atan2.cpp

* Update test_tf_Atan2.py

fixes the datatype of y

* Update tests/layer_tests/tensorflow_tests/test_tf_Atan2.py

* Update test_tf_Atan2.py

shape to float

* Update tests/layer_tests/tensorflow_tests/test_tf_Atan2.py

* Update tests/layer_tests/tensorflow_tests/test_tf_Atan2.py

* Update tests/layer_tests/tensorflow_tests/test_tf_Atan2.py

* Update test_tf_Atan2.py

Makes the range of input inclusive for x<0 and y<0.

* Update src/frontends/tensorflow_common/src/op/atan2.cpp

---------

Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
2023-12-06 21:57:07 +01:00
Roman Kazantsev cac6aadcc8
[TF FE] Support object removal and Pad for complex type (#21498)
* [TF FE] Support object removal and Pad for complex type

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

* Add test for Pad on complex type

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

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-12-06 20:03:43 +01:00
Roman Kazantsev 9ecebdd202
[Common Frontend] Move ComplexTypeMark into common frontend (#21409)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-12-01 12:12:19 +04:00
Roman Kazantsev cb5377fb1d
[TF FE] Correct ArgMinMax translators and add tests (#21364)
* [TF FE] Correct ArgMinMax translators and add tests

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

* Update tests/layer_tests/tensorflow_tests/test_tf_ArgMinMax.py

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-11-30 00:00:43 +04:00
Roman Kazantsev 9421f4cf2d
[TF FE] Speed up compilation - part 5 (#21288)
* [TF FE] Speed up compilation - part 5

Avoid usage of heavy opsetX header

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

* Complete constant.hpp template methods for string Tensor

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

* Revert "Complete constant.hpp template methods for string Tensor"

This reverts commit 8f86ab2e7b.

---------

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-11-27 10:51:18 +04:00
Roman Kazantsev 9f87f72ca6
[TF FE] Speed up compilation - part 4 (#21269)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-11-25 01:06:20 +04:00
Georgy Krivoruchko a0614c4cb8
[TFLite] Initial support of Densify operation
* Added Densify
2023-11-22 15:34:10 +04:00
Roman Kazantsev d1f71ee233
[TF FE] Speed up compilation - part 3 (#21211)
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-11-21 14:44:21 +00:00
Roman Kazantsev ab3452ce59
[TF FE] Speed up compilation - part 2 (#21170)
Avoid use of heavy header

Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
2023-11-20 12:51:35 +04:00