From 7f53f356993ee84ef28d286dbcad9263a57613f3 Mon Sep 17 00:00:00 2001 From: Alexander Nesterov Date: Mon, 30 Sep 2024 18:27:00 +0200 Subject: [PATCH] fix transformation pipeline --- .../src/transformations/transformation_pipeline.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/intel_cpu/src/transformations/transformation_pipeline.cpp b/src/plugins/intel_cpu/src/transformations/transformation_pipeline.cpp index bae292aa4cfe33..04a737b5a454a5 100644 --- a/src/plugins/intel_cpu/src/transformations/transformation_pipeline.cpp +++ b/src/plugins/intel_cpu/src/transformations/transformation_pipeline.cpp @@ -290,7 +290,7 @@ void Transformations::UpToLpt() { levels::int8_narrow_range }; - const bool useLpt = config.lpTransformsMode == Config::LPTransformsMode::On && + const bool useLpt = config.lpTransformsMode == ov::intel_cpu::Config::LPTransformsMode::On && LowPrecision::isFunctionQuantized(model, supported_fq_levels) && CPU_DEBUG_CAP_IS_TRANSFORMATION_ENABLED(config.debugCaps, Lpt); @@ -885,11 +885,11 @@ void Transformations::MainSnippets(void) { return false; }; - if (snippetsMode == ov::intel_cpu::Config::SnippetsMode::Disable || !is_supported_isa()) + if (config.snippetsMode == ov::intel_cpu::Config::SnippetsMode::Disable || !is_supported_isa()) return; // TODO [123659] Implement common logic to split optimization and limitation conditions - const auto ignoreCallback = snippetsMode == ov::intel_cpu::Config::SnippetsMode::IgnoreCallback; + const auto ignoreCallback = config.snippetsMode == ov::intel_cpu::Config::SnippetsMode::IgnoreCallback; // [111813]: At the moment Snippets supports Transpose on output of MHA pattern only if it is an one node between MatMul and Result. // However there may be Convert [f32->bf16] before Result since: @@ -1190,7 +1190,7 @@ void Transformations::PostSnippets(void) { } void Transformations::Snippets(void) { - const bool useSnippets = snippetsMode != ov::intel_cpu::Config::SnippetsMode::Disable && + const bool useSnippets = config.snippetsMode != ov::intel_cpu::Config::SnippetsMode::Disable && CPU_DEBUG_CAP_IS_TRANSFORMATION_ENABLED(config.debugCaps, Snippets); if (!useSnippets) return;