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
d53a69f6
Commit
d53a69f6
authored
Feb 08, 2019
by
Shucai Xiao
Browse files
add lstm rewrite to program execution
parent
2ce55c6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/rewrite_rnn.cpp
src/rewrite_rnn.cpp
+5
-2
No files found.
src/rewrite_rnn.cpp
View file @
d53a69f6
...
@@ -16,11 +16,14 @@ void rewrite_rnn::apply(program& prog) const
...
@@ -16,11 +16,14 @@ void rewrite_rnn::apply(program& prog) const
{
{
apply_vanilla_rnn
(
prog
,
ins
);
apply_vanilla_rnn
(
prog
,
ins
);
}
}
else
if
(
ins
->
name
()
==
"gru"
)
if
(
ins
->
name
()
==
"gru"
)
{
{
apply_gru
(
prog
,
ins
);
apply_gru
(
prog
,
ins
);
}
}
else
if
(
ins
->
name
()
==
"lstm"
)
{
apply_lstm
(
prog
,
ins
);
}
}
}
}
}
...
...
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