Skip to content

Commit

Permalink
Fix compiler warning in utils.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanNovoselov committed Jun 13, 2024
1 parent 1d2f4f0 commit 2ea5d0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/snippets/src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,8 @@ size_t get_in_leading_dim(const VectorDims& shape, const std::vector<size_t>& la
return shape.back();
OPENVINO_ASSERT(layout.back() == layout.size() - 1 && layout.size() == shape.size(),
"detected invalid layout values: check that this shape + layout combination is schedulable");
const auto idx = layout[layout.size() - 2];
return std::accumulate(shape.cbegin() + idx + 1, shape.end(), 1, std::multiplies<size_t>());
const auto idx = static_cast<VectorDims::difference_type>(layout[layout.size() - 2]);
return std::accumulate(shape.cbegin() + idx + 1, shape.end(), 1ul, std::multiplies<size_t>());
}
size_t get_out_leading_dim(const VectorDims& shape, const std::vector<size_t>& layout) {
if (layout.empty())
Expand Down

0 comments on commit 2ea5d0d

Please sign in to comment.