Commit e3bd7f14 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format.

parent 83dbf407
...@@ -765,7 +765,7 @@ struct onnx_parser ...@@ -765,7 +765,7 @@ struct onnx_parser
// if the number of arguments is less than 6, append // if the number of arguments is less than 6, append
// undefined operator to have 6 arguments // undefined operator to have 6 arguments
if (args.size() < 6) if(args.size() < 6)
{ {
auto ins = prog.add_instruction(op::undefined{}); auto ins = prog.add_instruction(op::undefined{});
args.insert(args.end(), (6 - args.size()), ins); args.insert(args.end(), (6 - args.size()), ins);
...@@ -830,7 +830,7 @@ struct onnx_parser ...@@ -830,7 +830,7 @@ struct onnx_parser
} }
} }
void parse_undefined(const std::string &name) void parse_undefined(const std::string& name)
{ {
auto ins = prog.add_instruction(op::undefined{}); auto ins = prog.add_instruction(op::undefined{});
instructions[name] = ins; instructions[name] = ins;
...@@ -851,7 +851,7 @@ struct onnx_parser ...@@ -851,7 +851,7 @@ struct onnx_parser
assert(name != input); assert(name != input);
this->parse_node(input); this->parse_node(input);
} }
else if (input.empty()) else if(input.empty())
{ {
this->parse_undefined(input); this->parse_undefined(input);
} }
......
...@@ -560,7 +560,10 @@ TEST_CASE(rnn_test) ...@@ -560,7 +560,10 @@ TEST_CASE(rnn_test)
clip}, clip},
seq, seq,
w, w,
r, und, und, und); r,
und,
und,
und);
p.add_instruction(migraphx::op::rnn_last_output{}, out_hs); p.add_instruction(migraphx::op::rnn_last_output{}, out_hs);
auto prog = migraphx::parse_onnx("onnx_rnn_3args.onnx"); auto prog = migraphx::parse_onnx("onnx_rnn_3args.onnx");
......
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