* [TF FE] Add error-cause operation event for telemetry
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Revert unneeded changes
* Apply code-review feedback: replace test with unreal op, use error_cause
* Add test model with unreal Add operation
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* [Tools] Avoid use of NumPy deprecated types
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Revert "[Tools] Avoid use of NumPy deprecated types"
This reverts commit 21ffc167d1.
* Move to 1.24 Numpy
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>
* Add reverse infer
* Add more convolutions and include transformation in normalize of tf fe
* Fix code style
* Add activations and eltwise support
* Fix code style
* Add deprecation supression
* Fix pad type
* Remove eltwise
* Remove ngraph namespace usage
* Fix code style
* Apply review feedback
* Add tests for activations and eltwise
* Make transformation friend of tensor to avoid deprecated API
* clang fix all
* Update src/common/transformations/include/transformations/common_optimizations/reverse_shape_and_type_infer.hpp
Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
Co-authored-by: Roman Kazantsev <roman.kazantsev@intel.com>
* [ONNX FE] Support value freezing without specifying type
Implement gete_element_type method for ONNX InputModel.
Implement tests with freezing integer input and float models
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Update src/frontends/onnx/frontend/src/input_model.cpp
Co-authored-by: Tomasz Dołbniak <tomasz.dolbniak@intel.com>
* Update src/frontends/onnx/frontend/src/input_model.cpp
Co-authored-by: Tomasz Dołbniak <tomasz.dolbniak@intel.com>
* Update src/frontends/onnx/frontend/src/input_model.cpp
Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>
* Return only element type for model inputs and add ONNX FE tests
* Rename variable in the test
* Add syntax mark
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Co-authored-by: Tomasz Dołbniak <tomasz.dolbniak@intel.com>
Co-authored-by: Katarzyna Mitrus <katarzyna.mitrus@intel.com>
* Added support for ONNX OpExtension with custom domain
* review remarks
* move domain ctor to onnx OpExtension
* code refactor + new test
* styles applied
* [Python API] Support extensions with custom domains
* try to fix windows build error
* removed unnecessary stores
* [TF FE] Break the cycle in the different way
Earlier solution was incorrect due to inproper handling of forward edges cases
(edges going from parent to grand-child) for which topological sorting
of nodes can be interrupted.
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Break the cycle by NextIteration inputs
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* [TF FE] Support dynamic shape Placeholder freezing and PlaceholderWithDefault
Also, this PR contains reorganization of python unit tests for TF FE that
covers conversion and inference of different models in pbtxt.
This mini-infrastructure will be used in the future for TF FE support.
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Revert debug info
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>
* Use prebuilt cmake in install-dependencies steps
* Removed building of custom python to save Azure CI time
* Adjusted conditions in cmake
* Download VPU custom kernels compiler only for x86
* Removed -pyver argument
* Improvements
* Detect glibc version
* Usage of new glic variable
* Fixed typo
* Increased glibc version for MYRIAD case
* Made OpenVINO cmake Linux flavors agnostic
* Detect glibc version on RedHat
* Use clcompiler only since ubuntu 18.04
* Universal way to detect glibc version
* Revert some changes
* Apply suggestions from code review
fixes issue with GNA
* Apply suggestions from code review
fixed typo
* fix AddressSanitizer: stack-use-after-scope in ov::frontend::paddle::NodeContext::get_attribute_as_any
* fix cyclic reference of op place and decoder.
* fix code style
* fix code style.
* Use openvino pass graph_rewrite
* Use openvino pass pattern matcher
* Remove ngraph opsets
* Remove ngraph.hpp
* Remove ngraph includes
* Remove ngraph includes
* Use transformations API
* Remove ngraph includes
* Remove ngraph rt_info
* Remove unused ngraph includes
* Replace ngraph:: scope with ov:: here and there
* Remove serialize proxy header
* Remove proxy include
* Bring back a file for vpu-plugin
* Fix after upstream merge
* Remove nested namespace conflict
Co-authored-by: Andrei Kochin <andrei.kochin@intel.com>
Co-authored-by: Ivan Tikhonov <ivan.tikhonov@intel.com>
Co-authored-by: Mateusz Tabaka <mateusz.tabaka@intel.com>
* [FE] Fix freezing placeholder via freeze_placeholder_with_value option
Currently, freezing placeholder via freeze_placeholder_with_value option does not work for any frontends. It happens due to absence of a node in _input_shapes dictionary.
* Add get_element_type method for InputModel
* Revert not needed changes
* Revert not needed changes
* Update freeze_placeholder_test
* Add tests for TF FE with freezing values of different types
* Fix Python API return value
* Correct returned type for get_numpy_ctype
* Apply code-review feedback
* Update src/frontends/tensorflow/src/input_model.hpp
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
* Apply code-review feedback: no tf legacy specific routine and parameter names
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
* [Python API][Tools] Top up upper bound version for dependencies: NumPy, TensorFlow, NetworkX
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Remove upper-bound for TensorFlow and NumPy
* Revert "Remove upper-bound for TensorFlow and NumPy"
This reverts commit 662085df2e.
* Remove upper-bound for NumPy for default installation
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>
* [TF FE] Optimize FusedBatchNorm translator - avoid Transposes
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Fix FusedBatchNorm: correct compute for batch_mean and batch_variance
* Add layer tests and fix based on them
* Mark failing test cases and bind to issue tickets
* Work around tests for FusedBatchNorm in inference mode
* Use separate fictitious constants for reserved outputs
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* [TF FE] Break the cycle for NextIteration
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Fix code-style
* Better to cut by outputs of operation creating the cycle
* Remove extra thing
* Add test model
* Add test for conversion of TF1 While
* Apply code-review feedback: use pointers and correct error message
* Remove extra check
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
It might not be available in some cross-toolchains.
Extract the code for switching to gold linker into separate
CMake utility function to avoid duplication between multiple CMake scripts.
* Added PartialShape from str constructor, added to_string() method.
* Small corrections.
* Moved shape parsing to PartialShape and Dimension classes.
* Fixed errors.
* Added tests for shapes with comma separator.
* Fixed tests.
* Test fixed.
* Fixed test.
* Fixed tests.
* Small fix.
* Removed usage of depricated method.
* Fix in MO IR reader.
* Tests fixed.
* Fix in MO IR reader.
* Test fixed.
* Shape class alignment.
* Code fixes.
* Code fixes.
* Used unnamed namespace.
* Undo change of Shape attribute adapter.
* Undo change of Shape attribute adapter.
* Removed unnecessary includes.
* Removed unnecessary code.
* Test fixed.
* Fix in MO IR reader.
* Moved check_all_digits() to ov::util.
* Moved check_all_digits() to src/core/src/.
* Clang format.
* Apply suggestions from code review
Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
* Removed dimension_util file.
* Removed wrong change.
* Removed extra spaces from string representation of Shape.
* Test fixed.
* Added support of comma separator for value. Updated help.
* Returned old format shape serializing.
Co-authored-by: Ilya Churaev <ilyachur@gmail.com>
* Added doxygen comment for opset10
* Added get_available_opsets method to API
* Fixed build
* Fixed build and typo
* Use constant map
* Removed defines from global opset
* Added const to map
* [TF FE] Refactor translator for L2Loss and test in the pre-commit
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Use Power for square operation
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Add reference implementation for Is ops
* FIx test
* Fix typo
* Remove deprecated
* Fix issues with API switch
* Force cast to float for float16/bfloat16 in ref
* Fix style
* Remove BWDCMP_RTTI
* Remove TensorVector helper check
* Remove evaluate functions
* Disable faling tests due to missing eval
* Enable linker warnings as error for Windows
* Fisable some linker warnings
* Suppress warnings
* Fixed build
* Change if opset
* Try to fix some warnings
* Revert some changes
* Try to fix warning
* Define OpenVINO static library for static libraries
* [TF FE] Refactor SpaceToBatch and BatchToSpace operations
Make them to support inputs of dynamic rank and shapes
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
* Add layer tests in the pre-commit
* Fix for normalizing padding and crops
* Correct the type of paddings and crops
* Fix incorrect changes for paddings and crops
* Update src/frontends/tensorflow/src/op/space_to_batch_nd.cpp
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
* Update src/frontends/tensorflow/src/op/space_to_batch_nd.cpp
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>
Signed-off-by: Kazantsev, Roman <roman.kazantsev@intel.com>
Co-authored-by: Maxim Vafin <maxim.vafin@intel.com>