From 30bc8c7601c81a6901373054e6e3223562d2ee13 Mon Sep 17 00:00:00 2001 From: PiotrKrzem Date: Thu, 28 Nov 2024 16:32:35 +0000 Subject: [PATCH] [FIX] CPU tests --- .../shape_inference/include/identity_shape_inference.hpp | 1 + src/plugins/intel_cpu/src/nodes/identity.cpp | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/core/shape_inference/include/identity_shape_inference.hpp b/src/core/shape_inference/include/identity_shape_inference.hpp index 9b2657464aeda1..74fa435a2a1a6b 100644 --- a/src/core/shape_inference/include/identity_shape_inference.hpp +++ b/src/core/shape_inference/include/identity_shape_inference.hpp @@ -5,6 +5,7 @@ #pragma once #include "openvino/op/identity.hpp" +#include "utils.hpp" namespace ov { namespace op { diff --git a/src/plugins/intel_cpu/src/nodes/identity.cpp b/src/plugins/intel_cpu/src/nodes/identity.cpp index 70d2b63463e284..c4706cb8c45272 100644 --- a/src/plugins/intel_cpu/src/nodes/identity.cpp +++ b/src/plugins/intel_cpu/src/nodes/identity.cpp @@ -105,10 +105,10 @@ std::string Identity::getPrimitiveDescriptorType() const { std::string str_type; if (type == impl_desc_type::unknown) str_type = "unknown"; - else if (str_type.empty()) - str_type = "undef"; - else + else if (type == impl_desc_type::ref_any) str_type = "ref_any"; + else + str_type = "undef"; if (selectedPrimitiveDesc) { if (selectedPrimitiveDesc->getConfig().outConfs[0].getMemDesc()->getPrecision() != ov::element::u8) {