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

clang format

parent 1807abc6
...@@ -480,9 +480,9 @@ std::vector<instruction_ref> rewrite_rnn::gru_cell(bool is_forward, ...@@ -480,9 +480,9 @@ std::vector<instruction_ref> rewrite_rnn::gru_cell(bool is_forward,
instruction_ref hidden_states = prog.end(); instruction_ref hidden_states = prog.end();
instruction_ref last_output{}; instruction_ref last_output{};
migraphx::shape seq_shape = seq->get_shape(); migraphx::shape seq_shape = seq->get_shape();
migraphx::shape r_shape = r->get_shape(); migraphx::shape r_shape = r->get_shape();
long seq_len = static_cast<long>(seq_shape.lens()[0]); long seq_len = static_cast<long>(seq_shape.lens()[0]);
long hs = static_cast<long>(r_shape.lens()[2]); long hs = static_cast<long>(r_shape.lens()[2]);
migraphx::shape s(seq_shape.type(), {seq_shape.lens()[1], r_shape.lens()[2]}); migraphx::shape s(seq_shape.type(), {seq_shape.lens()[1], r_shape.lens()[2]});
std::vector<int> data(s.elements(), 1); std::vector<int> data(s.elements(), 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