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
857df64e
"...resnet50_tensorflow.git" did not exist on "b9e30b11cc8f5e740e1c3a28c7c1e4d7bfffcacd"
Commit
857df64e
authored
Feb 07, 2019
by
Shucai Xiao
Browse files
clang format
parent
bddd8454
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/rewrite_gru.cpp
src/rewrite_gru.cpp
+2
-2
src/rewrite_rnn.cpp
src/rewrite_rnn.cpp
+2
-2
No files found.
src/rewrite_gru.cpp
View file @
857df64e
...
@@ -156,9 +156,9 @@ void rewrite_gru::apply(program& prog) const
...
@@ -156,9 +156,9 @@ void rewrite_gru::apply(program& prog) const
// with the last_output, if gru_last_output exists
// with the last_output, if gru_last_output exists
// while loop to handle case of multiple gru_last_output operators
// while loop to handle case of multiple gru_last_output operators
auto
last_output_it
=
ins
->
outputs
().
begin
();
auto
last_output_it
=
ins
->
outputs
().
begin
();
while
(
last_output_it
!=
ins
->
outputs
().
end
())
while
(
last_output_it
!=
ins
->
outputs
().
end
())
{
{
last_output_it
=
std
::
find_if
(
last_output_it
,
ins
->
outputs
().
end
(),
[]
(
auto
i
)
{
last_output_it
=
std
::
find_if
(
last_output_it
,
ins
->
outputs
().
end
(),
[](
auto
i
)
{
return
i
->
name
()
==
"gru_last_output"
;
return
i
->
name
()
==
"gru_last_output"
;
});
});
...
...
src/rewrite_rnn.cpp
View file @
857df64e
...
@@ -159,9 +159,9 @@ void rewrite_rnn::apply(program& prog) const
...
@@ -159,9 +159,9 @@ void rewrite_rnn::apply(program& prog) const
// search its output to find if there are rnn_last_output operator
// search its output to find if there are rnn_last_output operator
// while loop to handle case of multiple rnn_last_output operators
// while loop to handle case of multiple rnn_last_output operators
auto
last_output_it
=
ins
->
outputs
().
begin
();
auto
last_output_it
=
ins
->
outputs
().
begin
();
while
(
last_output_it
!=
ins
->
outputs
().
end
())
while
(
last_output_it
!=
ins
->
outputs
().
end
())
{
{
last_output_it
=
std
::
find_if
(
last_output_it
,
ins
->
outputs
().
end
(),
[]
(
auto
i
)
{
last_output_it
=
std
::
find_if
(
last_output_it
,
ins
->
outputs
().
end
(),
[](
auto
i
)
{
return
i
->
name
()
==
"rnn_last_output"
;
return
i
->
name
()
==
"rnn_last_output"
;
});
});
...
...
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