Commit d0c3a01d authored by wsttiger's avatar wsttiger
Browse files

Clang tidy

parent 684a64bd
...@@ -375,10 +375,10 @@ struct squeeze ...@@ -375,10 +375,10 @@ struct squeeze
std::vector<std::size_t> new_lens; std::vector<std::size_t> new_lens;
if(axes.empty()) if(axes.empty())
{ {
for(std::size_t i = 0; i < old_lens.size(); i++) for (unsigned long len : old_lens)
{ {
if(old_lens[i] != 1) if(len != 1)
new_lens.push_back(old_lens[i]); new_lens.push_back(len);
} }
} }
else else
......
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