Unverified Commit de6a9ba6 authored by Brian Pickrell's avatar Brian Pickrell Committed by GitHub
Browse files

Merge branch 'develop' into dynamic_reduce

parents 0fe131d2 48cc33e4
...@@ -70,14 +70,10 @@ struct squeeze ...@@ -70,14 +70,10 @@ struct squeeze
std::vector<shape::dynamic_dimension> dyn_dims = {}; std::vector<shape::dynamic_dimension> dyn_dims = {};
if(axes.empty()) if(axes.empty())
{ {
for(auto i : range(input_shape.ndim())) std::copy_if(input_shape.dyn_dims().cbegin(),
{ input_shape.dyn_dims().cend(),
auto dd = input_shape.dyn_dims()[i]; std::back_inserter(dyn_dims),
if(dd != one_dyn_dim) [&](auto dd) { return dd != one_dyn_dim; });
{
dyn_dims.push_back(dd);
}
}
} }
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