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

clang format

parent 97568d53
......@@ -802,14 +802,14 @@ void rewrite_rnn::apply_lstm(program& prog, instruction_ref ins) const
// bias
instruction_ref bias = prog.end();
if (args.size() >= 4 && args[3]->name() != "undefined")
if(args.size() >= 4 && args[3]->name() != "undefined")
{
bias = args[3];
}
// initial hidden state
instruction_ref ih{};
if (args.size() >= 6 && args[5]->name() != "undefined")
if(args.size() >= 6 && args[5]->name() != "undefined")
{
ih = args[5];
}
......@@ -820,7 +820,7 @@ void rewrite_rnn::apply_lstm(program& prog, instruction_ref ins) const
// initial cell value
instruction_ref ic{};
if (args.size() >= 7 && args[6]->name() != "undefined")
if(args.size() >= 7 && args[6]->name() != "undefined")
{
ic = args[6];
}
......@@ -852,7 +852,7 @@ void rewrite_rnn::apply_lstm(program& prog, instruction_ref ins) const
last_output = prog.insert_instruction(ins, op::squeeze{{0}}, ret[1]);
last_cell_output = prog.insert_instruction(ins, op::squeeze{{0}}, ret[2]);
if (ret[0] == prog.end())
if(ret[0] == prog.end())
{
prog.replace_instruction(ins, op::concat{0}, ret[1]);
}
......
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