Skip to content

Commit

Permalink
Update ngraph/core/reference/src/runtime/reference/concat.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Gleb Kazantaev <[email protected]>
  • Loading branch information
2 people authored and Patryk Elszkowski committed Feb 11, 2021
1 parent a33d2f1 commit 70fae5c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions ngraph/core/reference/src/runtime/reference/concat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ namespace ngraph
{
std::vector<size_t> sizes;
sizes.reserve(in_shapes.size());
for (size_t in_index = 0; in_index != in_shapes.size(); ++in_index)
{
sizes.push_back(shape_size(in_shapes[in_index]));
}
std::transform(begin(in_shapes),
end(in_shapes),
std::back_inserter(sizes),
[](const Shape& shape) { return shape_size(shape); });
return sizes;
}
} // namespace
Expand Down Expand Up @@ -69,6 +69,6 @@ namespace ngraph
}
}
}
}
}
}
} // namespace reference
} // namespace runtime
} // namespace ngraph

0 comments on commit 70fae5c

Please sign in to comment.