Skip to content

Commit 108bb73

Browse files
authored
[GPU] Fix unit tests ph4 (#26879)
### Details: - Fix oob array
1 parent 5c1e1fb commit 108bb73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plugins/intel_gpu/src/graph/program_node.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -611,9 +611,9 @@ bool program_node::is_padded_spatial(size_t idx) const {
611611
auto& layout = get_output_layout(idx);
612612
const auto& lower_size = layout.data_padding._lower_size;
613613
const auto& upper_size = layout.data_padding._upper_size;
614-
return std::any_of(std::begin(lower_size) + 2, std::begin(lower_size) + layout.get_spatial_rank() - 1,
614+
return std::any_of(std::begin(lower_size) + 2, std::begin(lower_size) + 2 + layout.get_spatial_rank(),
615615
[](const tensor::value_type& el) { return el != 0; }) ||
616-
std::any_of(std::begin(upper_size) + 2, std::begin(upper_size) + layout.get_spatial_rank() - 1,
616+
std::any_of(std::begin(upper_size) + 2, std::begin(upper_size) + 2 + layout.get_spatial_rank(),
617617
[](const tensor::value_type& el) { return el != 0; });
618618
}
619619

0 commit comments

Comments
 (0)