Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
MIGraphX
Commits
62044b86
Commit
62044b86
authored
Jan 28, 2019
by
Shucai Xiao
Browse files
clang format.
parent
7113cdfa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/rewrite_rnn.cpp
src/rewrite_rnn.cpp
+2
-2
No files found.
src/rewrite_rnn.cpp
View file @
62044b86
...
@@ -136,10 +136,10 @@ void rewrite_rnn::apply(program& prog) const
...
@@ -136,10 +136,10 @@ void rewrite_rnn::apply(program& prog) const
// operator. Intuitively, we can do a slice on the input to get
// operator. Intuitively, we can do a slice on the input to get
// the last output, but it is already existed in the rnn operator,
// the last output, but it is already existed in the rnn operator,
// so we can just use it as the output here
// so we can just use it as the output here
if
(
ins
->
name
()
==
"rnn_last_output"
)
if
(
ins
->
name
()
==
"rnn_last_output"
)
{
{
// if rnn operator is executed, the last_output != prog.end()
// if rnn operator is executed, the last_output != prog.end()
if
(
last_output
!=
prog
.
end
())
if
(
last_output
!=
prog
.
end
())
{
{
prog
.
replace_instruction
(
ins
,
op
::
identity
{},
last_output
);
prog
.
replace_instruction
(
ins
,
op
::
identity
{},
last_output
);
last_output
=
prog
.
end
();
last_output
=
prog
.
end
();
...
...
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