Commit 8b6a35bb authored by Paul's avatar Paul
Browse files

Formatting

parent 0856b6e2
...@@ -435,8 +435,10 @@ struct flatten ...@@ -435,8 +435,10 @@ struct flatten
} }
else if(axis < lens.size()) else if(axis < lens.size())
{ {
auto x = std::accumulate(lens.begin(), lens.begin()+axis, std::size_t{1}, std::multiplies<>{}); auto x = std::accumulate(
auto y = std::accumulate(lens.begin()+axis, lens.end(), std::size_t{1}, std::multiplies<>{}); lens.begin(), lens.begin() + axis, std::size_t{1}, std::multiplies<>{});
auto y = std::accumulate(
lens.begin() + axis, lens.end(), std::size_t{1}, std::multiplies<>{});
return {inputs.at(0).type(), {x, y}}; return {inputs.at(0).type(), {x, y}};
} }
else else
......
...@@ -8,7 +8,10 @@ namespace cpu { ...@@ -8,7 +8,10 @@ namespace cpu {
std::string cpu_target::name() const { return "cpu"; } std::string cpu_target::name() const { return "cpu"; }
std::vector<pass> cpu_target::get_passes(context&) const { return {auto_contiguous{}, cpu_lowering{}}; } std::vector<pass> cpu_target::get_passes(context&) const
{
return {auto_contiguous{}, cpu_lowering{}};
}
} // namespace cpu } // namespace cpu
......
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