From a3a4fadb269e705eb822cbffdc1f72fe1980f146 Mon Sep 17 00:00:00 2001 From: "Li, Tingqian" Date: Wed, 27 Dec 2023 19:40:56 -0500 Subject: [PATCH] fix AttrAny::equal_to --- src/plugins/intel_cpu/src/utils/gen_pattern.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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>();