Commit 588cadf4 authored by Khalique's avatar Khalique
Browse files

formatting

parent b263cfa0
...@@ -185,19 +185,34 @@ struct onnx_parser ...@@ -185,19 +185,34 @@ struct onnx_parser
instruction_ref instruction_ref
parse_sum(const std::string&, const attribute_map&, std::vector<instruction_ref> args) parse_sum(const std::string&, const attribute_map&, std::vector<instruction_ref> args)
{ {
return std::accumulate(std::next(args.begin()), args.end(), args.front(), [this](instruction_ref a, instruction_ref b){return add_broadcastable_binary_op(a, b, op::add{});}); return std::accumulate(std::next(args.begin()),
args.end(),
args.front(),
[this](instruction_ref a, instruction_ref b) {
return add_broadcastable_binary_op(a, b, op::add{});
});
} }
instruction_ref instruction_ref
parse_max(const std::string&, const attribute_map&, std::vector<instruction_ref> args) parse_max(const std::string&, const attribute_map&, std::vector<instruction_ref> args)
{ {
return std::accumulate(std::next(args.begin()), args.end(), args.front(), [this](instruction_ref a, instruction_ref b){return add_broadcastable_binary_op(a, b, op::max{});}); return std::accumulate(std::next(args.begin()),
args.end(),
args.front(),
[this](instruction_ref a, instruction_ref b) {
return add_broadcastable_binary_op(a, b, op::max{});
});
} }
instruction_ref instruction_ref
parse_min(const std::string&, const attribute_map&, std::vector<instruction_ref> args) parse_min(const std::string&, const attribute_map&, std::vector<instruction_ref> args)
{ {
return std::accumulate(std::next(args.begin()), args.end(), args.front(), [this](instruction_ref a, instruction_ref b){return add_broadcastable_binary_op(a, b, op::min{});}); return std::accumulate(std::next(args.begin()),
args.end(),
args.front(),
[this](instruction_ref a, instruction_ref b) {
return add_broadcastable_binary_op(a, b, op::min{});
});
} }
instruction_ref instruction_ref
......
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