Commit 15f23855 authored by Khalique's avatar Khalique
Browse files

formatting

parent 21ec113b
...@@ -185,9 +185,9 @@ struct onnx_parser ...@@ -185,9 +185,9 @@ struct onnx_parser
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)
{ {
auto curr_sum = args.front(); auto curr_sum = args.front();
if (args.size() > 1) if(args.size() > 1)
{ {
for (auto it = std::next(args.begin()); it != args.end(); ++it) for(auto it = std::next(args.begin()); it != args.end(); ++it)
{ {
curr_sum = add_broadcastable_binary_op(curr_sum, *it, op::add{}); curr_sum = add_broadcastable_binary_op(curr_sum, *it, op::add{});
} }
...@@ -199,9 +199,9 @@ struct onnx_parser ...@@ -199,9 +199,9 @@ struct onnx_parser
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)
{ {
auto curr_max = args.front(); auto curr_max = args.front();
if (args.size() > 1) if(args.size() > 1)
{ {
for (auto it = std::next(args.begin()); it != args.end(); ++it) for(auto it = std::next(args.begin()); it != args.end(); ++it)
{ {
curr_max = add_broadcastable_binary_op(curr_max, *it, op::max{}); curr_max = add_broadcastable_binary_op(curr_max, *it, op::max{});
} }
...@@ -213,9 +213,9 @@ struct onnx_parser ...@@ -213,9 +213,9 @@ struct onnx_parser
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)
{ {
auto curr_min = args.front(); auto curr_min = args.front();
if (args.size() > 1) if(args.size() > 1)
{ {
for (auto it = std::next(args.begin()); it != args.end(); ++it) for(auto it = std::next(args.begin()); it != args.end(); ++it)
{ {
curr_min = add_broadcastable_binary_op(curr_min, *it, op::min{}); curr_min = add_broadcastable_binary_op(curr_min, *it, op::min{});
} }
......
...@@ -582,7 +582,6 @@ struct min_op ...@@ -582,7 +582,6 @@ struct min_op
} }
}; };
template <typename Op> template <typename Op>
struct cpu_binary struct cpu_binary
{ {
......
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