Commit adc03be6 authored by Paul's avatar Paul
Browse files

Format

parent 6ba5859b
...@@ -37,8 +37,9 @@ bool reduce_dim(std::vector<shape>& shapes, std::size_t n) ...@@ -37,8 +37,9 @@ bool reduce_dim(std::vector<shape>& shapes, std::size_t n)
void reduce_dim1(std::vector<shape>& shapes) void reduce_dim1(std::vector<shape>& shapes)
{ {
if(std::any_of( if(std::any_of(shapes.begin(), shapes.end(), [&](const auto& s) {
shapes.begin(), shapes.end(), [&](const auto& s) { return s.lens().size() < 2 or s.lens().back() != 1; })) return s.lens().size() < 2 or s.lens().back() != 1;
}))
return; return;
for(auto& s : shapes) for(auto& s : shapes)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment