Skip to content

Commit

Permalink
[FIX] Multiplies initial value
Browse files Browse the repository at this point in the history
  • Loading branch information
PiotrKrzem committed Mar 9, 2025
1 parent 2818126 commit c70fe1d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class ReferencePagedAttentionLayerTest : public testing::TestWithParam<PagedAtte
oss << t.shape.to_string();
oss << ", vals: ";
oss << "()";
for (size_t i = 0; i < std::accumulate(t.shape.begin(), t.shape.end(), 0, std::multiplies<size_t>{}); ++i) {
for (size_t i = 0; i < std::accumulate(t.shape.begin(), t.shape.end(), 1, std::multiplies<size_t>{}); ++i) {
if (t.type == ov::element::f32) {
oss << static_cast<float*>(t.data.data())[i];
} else if (t.type == ov::element::i32) {
Expand Down

0 comments on commit c70fe1d

Please sign in to comment.