From ac9c2f19dcc177c613f7e2fa56cbd83c045aefe9 Mon Sep 17 00:00:00 2001 From: Mang Guo Date: Mon, 18 Oct 2021 20:28:47 +0800 Subject: [PATCH] [CPU] Register pass to remove unnecessary convert layers (#7642) --- inference-engine/src/mkldnn_plugin/mkldnn_plugin.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/inference-engine/src/mkldnn_plugin/mkldnn_plugin.cpp b/inference-engine/src/mkldnn_plugin/mkldnn_plugin.cpp index 6fb925d9595..c1271991711 100644 --- a/inference-engine/src/mkldnn_plugin/mkldnn_plugin.cpp +++ b/inference-engine/src/mkldnn_plugin/mkldnn_plugin.cpp @@ -28,6 +28,7 @@ #include #include #include "transformations/common_optimizations/convert_quantize_dequantize.hpp" +#include #include #include #include @@ -184,6 +185,7 @@ static void TransformationUpToCPUSpecificOpSet(std::shared_ptr std::vector{ ngraph::element::i8, ngraph::element::u8, ngraph::element::i4, ngraph::element::u4 }); } manager.register_pass(precisions); + manager.register_pass(); auto pass_config = manager.get_pass_config();