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
5f96bb79
Commit
5f96bb79
authored
Feb 07, 2019
by
Shucai Xiao
Browse files
code backup
parent
36077280
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
src/rewrite_rnn.cpp
src/rewrite_rnn.cpp
+8
-2
No files found.
src/rewrite_rnn.cpp
View file @
5f96bb79
...
@@ -918,9 +918,15 @@ std::vector<instruction_ref> rewrite_rnn::lstm_cell(bool is_forward,
...
@@ -918,9 +918,15 @@ std::vector<instruction_ref> rewrite_rnn::lstm_cell(bool is_forward,
auto
ic
=
inputs
.
at
(
5
);
auto
ic
=
inputs
.
at
(
5
);
auto
pph
=
inputs
.
at
(
6
);
auto
pph
=
inputs
.
at
(
6
);
instruction_ref
instruction_ref
hidden_states
=
prog
.
end
();
instruction_ref
last_output
{};
instruction_ref
last_cell_output
{};
migraphx
::
shape
seq_shape
=
seq
->
get_shape
();
long
seq_len
=
static_cast
<
long
>
(
seq_shape
.
lens
()[
0
]);
long
hs
=
static_cast
<
long
>
(
r
->
get_shape
().
lens
()[
2
]);
return
{};
}
}
std
::
vector
<
operation
>
rewrite_rnn
::
lstm_actv_funcs
(
instruction_ref
ins
)
const
std
::
vector
<
operation
>
rewrite_rnn
::
lstm_actv_funcs
(
instruction_ref
ins
)
const
...
...
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