From c514d4b9952ee3749806285a54ac067a4046d20a Mon Sep 17 00:00:00 2001 From: Edward Shogulin Date: Fri, 25 Jun 2021 20:10:42 +0300 Subject: [PATCH] [LPT] Move clean up transformations in one pass manager #5 --- .../src/low_precision.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/inference-engine/src/low_precision_transformations/src/low_precision.cpp b/inference-engine/src/low_precision_transformations/src/low_precision.cpp index 025466f2c781a2..b1973701e5770f 100644 --- a/inference-engine/src/low_precision_transformations/src/low_precision.cpp +++ b/inference-engine/src/low_precision_transformations/src/low_precision.cpp @@ -313,15 +313,11 @@ bool ngraph::pass::low_precision::LowPrecision::run_on_function(std::shared_ptr< cleanup->add_matcher(params); cleanup->add_matcher(params); cleanup->add_matcher(params); - cleanupManager.run_passes(f); - } - - { - ngraph::pass::Manager standaloneCleanupManager(passConfig); // WA: precision restrictions for groupConv must be propagated to MultiplyToGroupConvolution transformation - const auto groupConvRestriction = OperationPrecisionRestriction::getPrecisionsByOperationType(precisionRestrictions); - standaloneCleanupManager.register_pass(params, groupConvRestriction); - standaloneCleanupManager.run_passes(f); + cleanup->add_matcher( + params, + OperationPrecisionRestriction::getPrecisionsByOperationType(precisionRestrictions)); + cleanupManager.run_passes(f); } // TODO: LPT: is legacy?