From 108bb731395edb98c3d55bea53d438db247d6aee Mon Sep 17 00:00:00 2001 From: Pavel Durandin Date: Thu, 3 Oct 2024 16:57:56 +0400 Subject: [PATCH] [GPU] Fix unit tests ph4 (#26879) ### Details: - Fix oob array --- src/plugins/intel_gpu/src/graph/program_node.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/intel_gpu/src/graph/program_node.cpp b/src/plugins/intel_gpu/src/graph/program_node.cpp index 3c9ad0f7317a27..21ba4e656fae0d 100644 --- a/src/plugins/intel_gpu/src/graph/program_node.cpp +++ b/src/plugins/intel_gpu/src/graph/program_node.cpp @@ -611,9 +611,9 @@ bool program_node::is_padded_spatial(size_t idx) const { auto& layout = get_output_layout(idx); const auto& lower_size = layout.data_padding._lower_size; const auto& upper_size = layout.data_padding._upper_size; - return std::any_of(std::begin(lower_size) + 2, std::begin(lower_size) + layout.get_spatial_rank() - 1, + return std::any_of(std::begin(lower_size) + 2, std::begin(lower_size) + 2 + layout.get_spatial_rank(), [](const tensor::value_type& el) { return el != 0; }) || - std::any_of(std::begin(upper_size) + 2, std::begin(upper_size) + layout.get_spatial_rank() - 1, + std::any_of(std::begin(upper_size) + 2, std::begin(upper_size) + 2 + layout.get_spatial_rank(), [](const tensor::value_type& el) { return el != 0; }); }