diff --git a/src/plugins/intel_cpu/src/utils/gen_pattern.hpp b/src/plugins/intel_cpu/src/utils/gen_pattern.hpp index a7b29c7f6c78e1..24def4493f62b2 100644 --- a/src/plugins/intel_cpu/src/utils/gen_pattern.hpp +++ b/src/plugins/intel_cpu/src/utils/gen_pattern.hpp @@ -411,16 +411,16 @@ struct AttrAny { template bool equal_to(const std::vector& rhs) { - if (any.empty() && rhs.empty()) - return true; + if (any.empty()) + return rhs.empty(); auto& vec = any.as>(); return std::equal(vec.begin(), vec.end(), rhs.begin()); } template bool equal_to(const std::vector& rhs) { - if (any.empty() && rhs.empty()) - return true; + if (any.empty()) + return rhs.empty(); if (any.is>()) { auto& vec = any.as>();