[IE][VPU]: Reverts nGraph TI Unrolling for VPU (#1824)
authorGladilov, Gleb <gleb.gladilov@intel.com>
Tue, 18 Aug 2020 09:09:06 +0000 (12:09 +0300)
committerGitHub <noreply@github.com>
Tue, 18 Aug 2020 09:09:06 +0000 (12:09 +0300)
inference-engine/src/vpu/graph_transformer/src/frontend/frontend.cpp
inference-engine/src/vpu/myriad_plugin/myriad_plugin.cpp

index 4966b14..a504d74 100644 (file)
@@ -23,7 +23,6 @@
 #include <generic_ie.hpp>
 #include <ngraph/opsets/opset3.hpp>
 #include <transformations/tensor_iterator_transformations/apply_transformations_to_ti_body.hpp>
-#include <transformations/tensor_iterator_transformations/unroll_tensor_iterator.hpp>
 #include <transformations/convert_opset3_to_opset2/convert_opset3_to_opset2.hpp>
 #include <transformations/convert_opset2_to_opset1/convert_opset2_to_opset1.hpp>
 #include <transformations/convert_opset1_to_legacy/convert_opset1_to_legacy.hpp>
@@ -403,10 +402,7 @@ ModelPtr FrontEnd::runCommonPasses(ie::ICNNNetwork& network, const UnsupportedLa
             manager.run_passes(nGraphFunc);
 
             ngraph::pass::Manager ti_manager;
-            // Apply all transformations to TensorIterator body
             ti_manager.register_pass<ngraph::pass::ApplyTransformationsToTIBody>(manager);
-            // Unroll should be called after all conversions
-            ti_manager.register_pass<ngraph::pass::UnrollTensorIterator>();
             ti_manager.run_passes(nGraphFunc);
 
             vpu::MergeSubsequentDSROperations().run_on_function(nGraphFunc);
index fcae13b..0fecee2 100644 (file)
@@ -17,7 +17,6 @@
 #include <vpu/utils/profiling.hpp>
 #include <vpu/utils/error.hpp>
 #include <transformations/tensor_iterator_transformations/apply_transformations_to_ti_body.hpp>
-#include <transformations/tensor_iterator_transformations/unroll_tensor_iterator.hpp>
 #include <transformations/common_optimizations/common_optimizations.hpp>
 #include <vpu/ngraph/transformations/convert_nms_4_to_nms_dynamic.hpp>
 
@@ -52,10 +51,7 @@ ExecutableNetworkInternal::Ptr Engine::LoadExeNetworkImpl(
         manager.run_passes(function);
 
         ngraph::pass::Manager ti_manager;
-        // Apply all transformations to TensorIterator body
         ti_manager.register_pass<ngraph::pass::ApplyTransformationsToTIBody>(manager);
-        // Unroll should be called after all conversions
-        ti_manager.register_pass<ngraph::pass::UnrollTensorIterator>();
         ti_manager.run_passes(function);
     }