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
6b6f0f05
Commit
6b6f0f05
authored
Jan 24, 2019
by
Shucai Xiao
Browse files
clang format.
parent
467649aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/rewrite_gru.cpp
src/rewrite_gru.cpp
+4
-3
No files found.
src/rewrite_gru.cpp
View file @
6b6f0f05
...
...
@@ -276,12 +276,13 @@ std::vector<instruction_ref> rewrite_gru::gru_oper(bool is_forward,
auto
z1tht
=
prog
.
insert_instruction
(
ins
,
op
::
mul
{},
z1t
,
ht
);
auto
ztht1
=
prog
.
insert_instruction
(
ins
,
op
::
mul
{},
zt
,
ih
);
ih
=
prog
.
insert_instruction
(
ins
,
op
::
add
{},
z1tht
,
ztht1
);
final_out
=
prog
.
insert_instruction
(
ins
,
op
::
unsqueeze
{{
0
}},
ih
);
final_out
=
prog
.
insert_instruction
(
ins
,
op
::
unsqueeze
{{
0
}},
ih
);
if
(
is_forward
)
{
hidden_out
=
(
seq_index
==
0
)
?
final_out
:
prog
.
insert_instruction
(
ins
,
op
::
concat
{
0
},
hidden_out
,
final_out
);
hidden_out
=
(
seq_index
==
0
)
?
final_out
:
prog
.
insert_instruction
(
ins
,
op
::
concat
{
0
},
hidden_out
,
final_out
);
}
else
{
...
...
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