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

clang format

parent 91c90830
...@@ -826,12 +826,7 @@ TEST_CASE(lstm_forward_actv_func) ...@@ -826,12 +826,7 @@ TEST_CASE(lstm_forward_actv_func)
auto und = p.add_instruction(migraphx::op::undefined{}); auto und = p.add_instruction(migraphx::op::undefined{});
auto out_hs = p.add_instruction( auto out_hs = p.add_instruction(
migraphx::op::lstm{ migraphx::op::lstm{hs, {}, migraphx::op::rnn_direction::forward, clip, input_forget},
hs,
{},
migraphx::op::rnn_direction::forward,
clip,
input_forget},
seq, seq,
w, w,
r, r,
...@@ -856,9 +851,7 @@ TEST_CASE(lstm_forward_actv_func) ...@@ -856,9 +851,7 @@ TEST_CASE(lstm_forward_actv_func)
auto bias = p.add_parameter("bias", bias_shape); auto bias = p.add_parameter("bias", bias_shape);
auto und = p.add_instruction(migraphx::op::undefined{}); auto und = p.add_instruction(migraphx::op::undefined{});
auto out_hs = p.add_instruction( auto out_hs = p.add_instruction(migraphx::op::lstm{hs,
migraphx::op::lstm{
hs,
{migraphx::op::sigmoid{}}, {migraphx::op::sigmoid{}},
migraphx::op::rnn_direction::forward, migraphx::op::rnn_direction::forward,
clip, clip,
...@@ -888,9 +881,8 @@ TEST_CASE(lstm_forward_actv_func) ...@@ -888,9 +881,8 @@ TEST_CASE(lstm_forward_actv_func)
auto seq_len = p.add_parameter("seq_len", sl_shape); auto seq_len = p.add_parameter("seq_len", sl_shape);
auto und = p.add_instruction(migraphx::op::undefined{}); auto und = p.add_instruction(migraphx::op::undefined{});
auto out_hs = p.add_instruction( auto out_hs =
migraphx::op::lstm{ p.add_instruction(migraphx::op::lstm{hs,
hs,
{migraphx::op::tanh{}, migraphx::op::sigmoid{}}, {migraphx::op::tanh{}, migraphx::op::sigmoid{}},
migraphx::op::rnn_direction::forward, migraphx::op::rnn_direction::forward,
clip, clip,
...@@ -911,7 +903,6 @@ TEST_CASE(lstm_forward_actv_func) ...@@ -911,7 +903,6 @@ TEST_CASE(lstm_forward_actv_func)
} }
} }
TEST_CASE(lstm_reverse) TEST_CASE(lstm_reverse)
{ {
std::size_t sl = 5; // sequence len std::size_t sl = 5; // sequence len
......
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