Commit d90d2137 authored by Paul's avatar Paul
Browse files

Dont use the output

parent 2483cfa2
......@@ -64,8 +64,8 @@ struct concat_compiler : compiler<concat_compiler>
static std::size_t get_concat_elements(const std::vector<shape>& inputs)
{
auto total = std::accumulate(
inputs.begin(), inputs.end(), 0, [](auto x, auto s) { return x + s.elements(); });
return total / inputs.size();
inputs.begin(), std::prev(inputs.end()), 0, [](auto x, auto s) { return x + s.elements(); });
return total / (inputs.size() - 1);
}
operation compile_op(context& ctx, const std::vector<shape>& inputs, const value& v) const
......
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