**Details:** Report uninitialised variable in case TFVariable remains
**Ticket:** CVS-131589
---------
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* [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>
* [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>
* Update reverse infer to allow changing shape if it already partially defined
* Update tests
* Remove changes in If
---------
Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
* [TF FE] Use regular Convolution in case dynamic input channels
This solution is aligned with the legacy frontend but it has limitation.
This is a temporal solution until the core obtains ShapeOf evaluator.
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Remove unused variable from the test
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Fix unit-test
* Update mo unit-test
---------
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Moved mmap to openvino/util as a shared functionality
* Enabled MMAP for SavedModel and MetaGraph
* Fixed CMake
* Fixed a lost line
* Simplified code for compilers
* Aligned with an actual master
* Enabled mmap by default and added test
* Suppressed warning, added test for MetaGraph, additional messages
---------
Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
* [TF FE] Support Switch and Merge to fuse into If operation
It introduces support of TF1 control flow with Switch and Merge nodes.
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Add script for test model generation
* Fix code-style
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Fix build issue
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Fix build issue with types
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Apply code-review feedback: optimizations in utils
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Fix build issue
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Apply code-review remarks and cover more cases
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Remove commented code
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Remove unused vars
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Update MO unit-tests wit Switch-Merge case
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Fix build issue: remove unused variable
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
---------
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* [TF FE] Avoid usage of NGraph routines
Also, it introduces separate test fixture with graph comparison
for FEs
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Specify tickets for TODOs
---------
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* [TF FE] Implement optimal conversion of body graphs
Preliminary setting input shapes and types for body graph InputModel
provides more optimal conversion of body-graphs.
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Fix build issue
---------
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Separeted SavedModelVariablesIndex class from Saved Model
* Renamed SavedModelVariablesIndex class
* Enabled Tensorflow MetaGraph
* Enabled Tensorflow MetaGraph
* Covered VariableV2 and Assign nodes
* Applied review comments
* Added tests
* Added names to input/output ports too
* Fixed naming for using with MO
* Applied part of review comments
* Renamed meta.cpp and saved_model.cpp
* Applied shared_ptr for memory management of PtrNode
* Fixing CI
* Prevent cycles while passing thru graph
* Released requirement for Checkpointable Object Graph
* Changed naming approach to align port order
* Changed renaming order (before reordering)
* Added a Placeholder translator which checks updated shape
* WA missing Identity name
* Fix CI and restored lost translators after rebase
* WA for output names
* Removing unused params after cutting a model
* Prevents crash in case VariableV2 appears in freezed model
* Fixed saved model in case no variables.index found, but
variables exists
* Changed approach for handling native formats support
* Aligned behavior with freezing .meta files
* Fixed behavior for cutting a model by input tensor
* Applied review comments
* [TF FE] Support NonMaxSuppression with named outputs
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Simplify the test for NMS named outputs
* Share a script for test model generation
---------
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* [TF FE] Test ResourceGather operation and fix debug caps
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Fix test generation script
---------
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Fix in create_same_type_const_scalar; accurate updating type for parameter when inlining function call body
* Added Unique to the list of operations with named output ports (another MUSE fix)
* Draft: working version of extension with named ports in TF
* Merge fixes
* Refactor and productize POC
* Clean up
* Fix build
* Fix code style
* Fix lib so extension test
* Fix namespaces
* Remove usage of Any from CreatorFunction
* Fix build
* Fix arm build
* Apply review feedback
* Fix build after merge
* Apply suggestions from code review
---------
Co-authored-by: Sergey Lyalin <sergey.lyalin@intel.com>
* [TF FE] Post leftovers to support the MUSE model in SavedModel format
It contains tests imitating a case with Tokenizer extension and raised problems:
setting custom type for body graph Parameter, named ports for RaggedTensorToSparse
and Unique operations.
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Update src/frontends/tensorflow/tests/convert_tricky_models.cpp
---------
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
At the conversion stage we can't resolve Assert node because the condition
is computed only during inference time.
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* [TF FE] Convert a model with Framework nodes
Now the conversion pipeline will convert all unsupported operations to Framework nodes
It is done with a hope that sub-graphs with Framework Nodes will be cut in later stages
like auto-pruning.
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Fix build issue
* Fix dynamic element type for FusedBatchNorm
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Fix build issue
* Fix build issue
* Continue translation in case translator limitation
* Change undefined to dynamic type
* Have one more change to dynamic type
* Change undefined to dynamic in Const translator
* Expect MO to handle dynamic type
* Exclude TransposeSinking pass if model contains Framework nodes
---------
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* [TF FE] Support EmptyTensorList and TensorListPushBack operations
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Rename a script to generate the test model
* Correct test model generating script
---------
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
This is a corner case because body graph nodes have named output ports.
This allows to support custom RetinaNet model.
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* [TF FE] Add Const to Result removing transformation
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Add test model
* Optimize ConstToResultRemover
---------
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* [TF FE] Support SaveV2 operation
Also, implement transformation to remove UnsupportedConstant to Result
isolated sub-graphs
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Revert change for Constant
---------
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* [TF FE] Fix Wide and Deep model conversion
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Fix build
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* [TF FE] Support If and PartitionedCall operations
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Fix build
* Fix frontend wrapper for tests
* Erase tensor names in body graph before caching
* Apply code-review feedback: recover m_op_translators in Frontend
* Rename test models
* Rename unit-tests
* Correct scripts for test model generation
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* [TF FE] Support body graph conversion and injection
Now this is a base for further implementation support for StatefulPartitionedOp, While, and If operations
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Remove unused variable
* Remove artifacts of serialization experiment
* Apply code-review feedback: comments for decoder_argdef
* Create a mat to cache function indices by names
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* [TF FE] Support models with topologically unsorted nodes
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Fix conversion for models with cycle
* Fix code-style
* Fix code-style
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* [TF FE] Support Assert with string tensors
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Update src/frontends/tensorflow/src/op/const.cpp
* Update src/frontends/tensorflow/src/op/const.cpp
* Apply code-review feedback: better to use UnsupportedConstant
* Correct unit-test
* Replace Op with Node
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* [TF FE] Use output_shapes attribute for Placeholder
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Add test model
* Apply code-review feedback and remove compile warnings
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* [TF FE] Support unknown and undefined Placeholder shape
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Fix mistake in the test
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>