* Enable MapAllocator in IR Frontend
* Fix `ov_infer_request_ppp` test
With `mmap()`ing of IR, .bin can't be deleted until unmapping.
And it shows that there was a leak in test
* Add comment to Win `CreateFile()` regarding
FILE_SHARE_DELETE
* Unmap .bin file before IR files deletion
Wait ov::Model deletion to trigger .bin file unmapping
before IR files deletion
* ClangFormat
* Add `use_map_allocator` switch in FE
In case of direct use of FE (e.g. via MO), `mmap()` is OFF.
But in case of use FE via Core, `mmap()` is ON.
Move all openvino_conversion rountines into utils. Avoid using Squeeze without axis
that can create dynamic output rank
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Added Saved Model proto descriptors
* Included Google's protobuf repository
* Added wstring version of ov::util::directory_exists
* Added initial implementation of Saved Model iterator
# Conflicts:
# src/frontends/tensorflow/src/frontend.cpp
* Added missing proto files to repository
* Implemented reading of variables index and data files
# Conflicts:
# src/frontends/tensorflow/src/frontend.cpp
* Renamed class
# Conflicts:
# src/frontends/tensorflow/src/frontend.cpp
* Fix for cross-platform directory_exists
* Fixed codestyle and simplified code
* CI fixes
* Separeted Saved Model iterator from Proto iterator
* Moved variables index into separate class
* Added initial implementation of reading a variables from
saved model
# Conflicts:
# src/frontends/tensorflow/src/frontend.cpp
* Added external variable mapping
* Code cleanup
* Commit is for discussion purposes!!!
Implemented RestoreV2 with a workaround for strings
Not optimized, includes mem leak
* In progress...
* Added DT_STRING coverage into decoder_proto
* m_variables_index moved into underlying class
* Updated copyrgihts, added space between license and code
* Moved string constant to separate class
* Added AssignVariableOp operation
* Changed behavior of RestoreV2
Updated stubs for other ops
* Second working implementation, enabled:
Program-only models
Variables reading from data files
* Extended docs
* Fixed dynamic type
* Fixed naming
* Added Snappy submodule to support compression in TF FE
* Enabled Snappy Compression for TF FE
* Make static linkage of Snappy
Changing Warning as error behavior for 3rd party
* CI fixes
* Added Snappy copyright info
* Aligned behavior of StringConstant with UnsupportedConstant
* Added correct naming and removing unused inputs/outputs
* [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>
* Improve op support for detectron mask rcnn
* Initial commit
* Fix for reading processed list
* Format code
* Cleanup
* cleanup
* Cleanup
* cleanup test
* Add comment
* Add rt_info
* fix type
* More fixes for detectron
* Fix build
* Add tests for if
* Revert changes in index
* Add comment
* Fix test
* Fix get_axes_range
* Add tests and fix if type alignment
* Fix code style
---------
Co-authored-by: Mateusz <mateusz.mikolajczyk@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>
* Add descriptions to the transformations, add additional checks
* fix a warning
* TransposeSinking Rafactoring part2: move the transformations to a separate folder, align namespaces
* TransposeSinking refactoring: class names, namespaces
* codestyle
* resolve merge conflicts
* Ability to provide several source dirs for ncc-style checks
* Fixed include headers; added NCC to TF common
* Fixed NCC for frontends
* Fixed NCC for frontends
* Extra fixes
* Fixest push --f
* Clang-format
* Apply comments
* Add an option to specify required clang-format version
* Update src/frontends/tensorflow/src/decoder_proto.cpp
* Update src/frontends/tensorflow/src/decoder_proto.cpp
* [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>
* initial version of implementation
* styles applied
* fixed and registration
* add more unit tests
* fixed and in legacy opset
* review remarks
* refactor of version name range
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>
* Support setting and getting element type, shape and value in PyTorch FE InputModel
* Fix code style
* Fix code style
* Fix rsub layer test
* Fix py style
* Apply review feedback
* Fix code style
* Fix initial values of input and output flags in Place