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) {