Commit 2edffaf5 authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format.

parent a87890be
...@@ -887,7 +887,7 @@ struct onnx_parser ...@@ -887,7 +887,7 @@ struct onnx_parser
} }
// append undefined opeator to make 6 arguments // append undefined opeator to make 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);
......
...@@ -93,7 +93,8 @@ void rewrite_gru::apply(program& prog) const ...@@ -93,7 +93,8 @@ void rewrite_gru::apply(program& prog) const
ret_reverse[0] = prog.insert_instruction(ins, op::unsqueeze{{1}}, ret_reverse[0]); ret_reverse[0] = prog.insert_instruction(ins, op::unsqueeze{{1}}, ret_reverse[0]);
// concat the forward and reverse output // concat the forward and reverse output
auto hidden_state = prog.replace_instruction(ins, op::concat{1}, {ret_forward[0], ret_reverse[0]}); auto hidden_state =
prog.replace_instruction(ins, op::concat{1}, {ret_forward[0], ret_reverse[0]});
map_last_output[hidden_state] = last_output; map_last_output[hidden_state] = last_output;
} }
else else
......
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