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
2d0896e7
Commit
2d0896e7
authored
Feb 07, 2019
by
Shucai Xiao
Browse files
code cleanup.
parent
c194c35c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/rewrite_rnn.cpp
src/rewrite_rnn.cpp
+2
-1
No files found.
src/rewrite_rnn.cpp
View file @
2d0896e7
...
@@ -477,7 +477,8 @@ std::vector<instruction_ref> rewrite_rnn::gru_cell(bool is_forward,
...
@@ -477,7 +477,8 @@ std::vector<instruction_ref> rewrite_rnn::gru_cell(bool is_forward,
auto
bias
=
inputs
.
at
(
3
);
auto
bias
=
inputs
.
at
(
3
);
auto
ih
=
inputs
.
at
(
4
);
auto
ih
=
inputs
.
at
(
4
);
instruction_ref
hidden_states
=
prog
.
end
(),
last_output
;
instruction_ref
hidden_states
=
prog
.
end
();
instruction_ref
last_output
{};
long
seq_len
=
static_cast
<
long
>
(
seq
->
get_shape
().
lens
()[
0
]);
long
seq_len
=
static_cast
<
long
>
(
seq
->
get_shape
().
lens
()[
0
]);
long
hs
=
static_cast
<
long
>
(
r
->
get_shape
().
lens
()[
2
]);
long
hs
=
static_cast
<
long
>
(
r
->
get_shape
().
lens
()[
2
]);
...
...
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