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

clang format

parent 60bbf654
...@@ -229,7 +229,7 @@ std::vector<instruction_ref> rewrite_rnn::vanilla_rnn_cell(bool is_forward, ...@@ -229,7 +229,7 @@ std::vector<instruction_ref> rewrite_rnn::vanilla_rnn_cell(bool is_forward,
xt = prog.insert_instruction(ins, op::squeeze{{0}}, xt); xt = prog.insert_instruction(ins, op::squeeze{{0}}, xt);
instruction_ref xt_wi{}; instruction_ref xt_wi{};
instruction_ref ht_ri{}; instruction_ref ht_ri{};
if (bias != prog.end()) if(bias != prog.end())
{ {
xt_wi = prog.insert_instruction(ins, op::dot{}, xt, tran_sw, bwb); xt_wi = prog.insert_instruction(ins, op::dot{}, xt, tran_sw, bwb);
ht_ri = prog.insert_instruction(ins, op::dot{}, sih, tran_sr, brb); ht_ri = prog.insert_instruction(ins, op::dot{}, sih, tran_sr, brb);
...@@ -1014,7 +1014,7 @@ std::vector<instruction_ref> rewrite_rnn::lstm_cell(bool is_forward, ...@@ -1014,7 +1014,7 @@ std::vector<instruction_ref> rewrite_rnn::lstm_cell(bool is_forward,
// equation it = f(Xt*(Wi^T) + Ht-1*(Ri^T) + Pi (.) Ct-1 + Wbi + Rbi) // equation it = f(Xt*(Wi^T) + Ht-1*(Ri^T) + Pi (.) Ct-1 + Wbi + Rbi)
instruction_ref xt_wi{}, ht_ri{}; instruction_ref xt_wi{}, ht_ri{};
if (bias != prog.end()) if(bias != prog.end())
{ {
xt_wi = prog.insert_instruction(ins, op::dot{}, xt, tran_wi, wbi_brcst); xt_wi = prog.insert_instruction(ins, op::dot{}, xt, tran_wi, wbi_brcst);
ht_ri = prog.insert_instruction(ins, op::dot{}, sih, tran_ri, rbi_brcst); ht_ri = prog.insert_instruction(ins, op::dot{}, sih, tran_ri, rbi_brcst);
...@@ -1034,7 +1034,7 @@ std::vector<instruction_ref> rewrite_rnn::lstm_cell(bool is_forward, ...@@ -1034,7 +1034,7 @@ std::vector<instruction_ref> rewrite_rnn::lstm_cell(bool is_forward,
// equation ft = f(Xt*(Wf^T) + Ht-1*(Rf^T) + Pf (.) Ct-1 + Wbf + Rbf) // equation ft = f(Xt*(Wf^T) + Ht-1*(Rf^T) + Pf (.) Ct-1 + Wbf + Rbf)
instruction_ref xt_wf{}, ht_rf{}; instruction_ref xt_wf{}, ht_rf{};
if (bias != prog.end()) if(bias != prog.end())
{ {
xt_wf = prog.insert_instruction(ins, op::dot{}, xt, tran_wf, wbf_brcst); xt_wf = prog.insert_instruction(ins, op::dot{}, xt, tran_wf, wbf_brcst);
ht_rf = prog.insert_instruction(ins, op::dot{}, sih, tran_rf, rbf_brcst); ht_rf = prog.insert_instruction(ins, op::dot{}, sih, tran_rf, rbf_brcst);
......
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