Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
d2e0502e
Commit
d2e0502e
authored
Feb 17, 2019
by
Shucai Xiao
Browse files
clang format
parent
91c90830
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
59 deletions
+50
-59
test/onnx/onnx_rnn_test.cpp
test/onnx/onnx_rnn_test.cpp
+50
-59
No files found.
test/onnx/onnx_rnn_test.cpp
View file @
d2e0502e
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment