* Added compatibility check of layout with partial shape
E.g. layout "NC" in not compatible with PartialShape{1,3,224,224}
Check is added:
- For parameter set_layout
- For parameter set_partial_shape
- For result set_layout
- Checked also compatibility for all results after 'validate_and_infer_types'
* Fix incorrect tests
* Fix of more incorrect tests
* Removed couple of obsoleted error-handling tests - these are catched now on earlier stages
Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
* Check the selected frontend to correspond use_new/legacy_frontend options
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix a default case when no frontend is found
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Added op names to tensor names for MaskRCNN replacement transformation. Fixed output layout for MaskRCNN.
* Applied commentes left from PR with tensor names fix.
* Added tests for remove_tensor_names().
* Added checks in emitter.
* Removed debug output.
* Small fix.
* Small fix.
* Fixed tensor names setting in InputCut, fixed tensor names losing in AutomlEfficientDet.
* Changed op name adding to tensor names in InputCut for output port case only.
* change order of transformations to work correctly with Convolutions in Kaldi LSTM networks
* removed unneeded changes and add unit tests
* remove comment
* remove changes from memory_offset_adjustment, move all fixes inside add_reshape_transpose_around_conv_pool to avoid new bugs
* removed test for deleted changes
* replace -1 by None
* Correct Loaders for TensorFlow StridedSlice and Pack operations
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Supress INFO and WARNING messages from TensorFlow
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Detect casting node inside preprocessing block and leave it
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix unit-test for ObjectDetectionAPI
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* grouped convolution resolver fix
* add reverse_infer for Transpose, Elementwise, Identity and some fixes to successfully OOB convert MXNet models
* add reverse_infer for BatchNorms, dynamic groups fix, multi_box_prior.py fix
* add reverse infer for trivial cases
* input rank setting for image detection ops
* reverse_infer for Gather, AttributedGather add todo comment for Parameter
* reverse infer for LSTM, swapaxis; fixes and unit-tests for Elementwise, Gather, Transpose; also generalized Parameter reverse_infer; fixed DetectionOutput and partial reverse_infer
* clarified comment for LSTM reverse_infer
* detalized Elementwise reverse_infer, added several more unit-tests, Split reverse_infer fix, IteratorGetNext_ext.py fix
* generalized group convolution resolver
* specified in_ports explicitly
* clarified Split, Concat, Parameter, other minor typos
* relaxed compatibility check for elementwise; simplified scalar extracting for convolution.py and gather.py, fixed replacer order for ConvolutionNormalizer.py
* added routine set_input_shapes for image detection ops
* fixed typos to pass locally E2E, slightly changed LSTM reverse_infer
* VariadicSplit reverse_infer bugfix
* IteratorGetNextCut.py added check if port is connected
* explicitly specified in_port, added asserts, improved Split reverse infer
* sorted imports
* reverse_infer for ONNX and MXNet LSTM, GRU, RNN operations
* replaced Error raising with red warning
* added missing return for defined input shapes, fixed getting num groups for tf conv
* added mandatory attributes; fixed failing unit-tests, fixed typo with scalar group in ConvolutionNormalizer
* removed priorbox reverse_infer; Parameter reverse_infer corrected to use the only one existing out_port
* fixed clarify_partial_shape_test
* Preserve outputs order TF.
* Preserve of input/output indices for MxNet.
* Small fix.
* Added check.
* Small fix.
* Corrected Keras model importing.
* Fixed Keras model loading.
* Small correction.
* Corrected model loading.
* Small fix.
* Comment corrected.
* Removed unnecessary import.
* Preserving of input/output indices for ONNX.
* Fixed checks.
* Fixed for case of multiple outputs of node before Result.
* Added test for multiple tensor names before Result.
* Multiple tensor names before Result fix.
* Added order alignment for user input/output.
* Extended for case of input names in Parameter tensor list.
* Fixed unit tests.
* Corrected help.
* Small correction.
* Code refactoring.
* Temporarily reverted refactor.
* Fixed wrong changes.
* Fixed wrong changes.
* Returned reverted refactoring.
* Removed inputs_list from serializing.
* changed permutes
* fixed permutes
* fixed kernel
* fix transpose after convolution
* fix for convnet
* insert transposes for all convolutions and poolings
* refactor transformations;
added unit tests;
removed old transformations for addinf permutes/reshapes
* fixed constant types
* fixes after merge
* fixed bug for rm_cnn4a: added correct time_dim for the first convolution
* added fix for timeheightconvolution: in this case we have correct time set in convolution kernel already
* minor review fixes: renamed transformation and file
* rename in test
* rename in test
* sort imports + couplt changes in comments
* review fixes: refactoring
* replaced recursive implementation by nx.topological_sort;
fixed comments
* minor fixes: comment + preserving node names
* add warning about order if both mean and scale set
* Update tools/mo/openvino/tools/mo/main.py
Co-authored-by: Anastasia Popova <anastasia.popova@intel.com>
* removed warning, added phrase in documentation
* fixed merge
* added phrase about order of ,mean and scale in MO help
* duplicate MO help phrase in doc
* Update docs/MO_DG/prepare_model/convert_model/Converting_Model.md
Co-authored-by: Anastasiya Ageeva <anastasiya.ageeva@intel.com>
* Update docs/MO_DG/prepare_model/convert_model/Converting_Model.md
Co-authored-by: Anastasiya Ageeva <anastasiya.ageeva@intel.com>
* Update docs/MO_DG/prepare_model/convert_model/Converting_Model.md
Co-authored-by: Anastasiya Ageeva <anastasiya.ageeva@intel.com>
* Update tools/mo/openvino/tools/mo/utils/cli_parser.py
Co-authored-by: Anastasiya Ageeva <anastasiya.ageeva@intel.com>
* Update tools/mo/openvino/tools/mo/utils/cli_parser.py
Co-authored-by: Anastasiya Ageeva <anastasiya.ageeva@intel.com>
* remove tabs
* fix in order of reverse, mean, scale
Co-authored-by: Anastasia Popova <anastasia.popova@intel.com>
Co-authored-by: Anastasiya Ageeva <anastasiya.ageeva@intel.com>
* [Python API] Rename offline_transformations in the new api
* remove comments
* one more place to rename
* fix mo building
* fix after merge
* fix for pot import
* [Common FrontEnd] Implement ChangePlaceholderType transformation with OldApiMap
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Add ChangePlaceholderType pass into frontend normalize
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Add a comment about the transformation
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix build issue
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Apply code review comments: remove ngraph namespace rountine, etc.
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Remove use of extra Node object in set_old_api_map call
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Create separate pass for legacy nGraph transformations for MO with new frontend
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix build for ieFuncTests
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix build issue with namespace conflicts
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Revert "Fix build issue with namespace conflicts"
This reverts commit 50a189f4e5.
* Move legacy transformations to ngraph namespace
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix build issue with unresolved MOCLegacyTransformation
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Adjust code to new OldApiMap API
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Resolve merge conflicts
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Fix build issue
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Do not set legacy type for parameter in case user defined type
Signed-off-by: Roman Kazantsev <roman.kazantsev@intel.com>
* Updated requirements for MO and POT with telemetry.
* Added mock telemetry common class for unit tests.
* Used mock telemetry in preprocessing unit tests.
* Small correction.
* Fix in the transformation PreserveRuntimeInfo: now Transpose is inserted before input port 0 of Result only, not after data node of layer before Result layer.
* Deleted commented code.
* Added more tests for the MO transformation PreserveRuntimeInfo.