Commit 86d48b8e authored by Shucai Xiao's avatar Shucai Xiao
Browse files

clang format

parent 87697905
......@@ -537,7 +537,7 @@ std::vector<instruction_ref> rewrite_rnn::gru_cell(bool is_forward,
// equation f(xt*(Wz^T) + Ht-1 * (Rz^T) + Wbz + Rbz)
instruction_ref xt_wz{};
instruction_ref ht_rz{};
if (bias != prog.end())
if(bias != prog.end())
{
xt_wz = prog.insert_instruction(ins, op::dot{}, xt, tran_wz, wbz);
ht_rz = prog.insert_instruction(ins, op::dot{}, sih, tran_rz, rbz);
......@@ -553,7 +553,7 @@ std::vector<instruction_ref> rewrite_rnn::gru_cell(bool is_forward,
// equation f(Xt*(Wr^T) + Ht-1*(Rr^T) + Wbr + Rbr)
instruction_ref xt_wr{};
instruction_ref ht_rr{};
if (bias != prog.end())
if(bias != prog.end())
{
xt_wr = prog.insert_instruction(ins, op::dot{}, xt, tran_wr, wbr);
ht_rr = prog.insert_instruction(ins, op::dot{}, sih, tran_rr, rbr);
......@@ -573,7 +573,7 @@ std::vector<instruction_ref> rewrite_rnn::gru_cell(bool is_forward,
instruction_ref xt_wh{};
instruction_ref rt_rh{};
auto rt_ht1 = prog.insert_instruction(ins, op::mul{}, rt, sih);
if (bias != prog.end())
if(bias != prog.end())
{
xt_wh = prog.insert_instruction(ins, op::dot{}, xt, tran_wh, wbh);
rt_rh = prog.insert_instruction(ins, op::dot{}, rt_ht1, tran_rh, rbh);
......
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