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
4e3d06ab
Commit
4e3d06ab
authored
Mar 25, 2019
by
Shucai Xiao
Browse files
clang format
parent
15db7a1e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
src/rewrite_rnn.cpp
src/rewrite_rnn.cpp
+12
-13
No files found.
src/rewrite_rnn.cpp
View file @
4e3d06ab
...
...
@@ -536,7 +536,7 @@ std::vector<instruction_ref> rewrite_rnn::gru_cell(bool is_forward,
instruction_ref
zt
{};
instruction_ref
ht
{};
if
(
bias
!=
prog
.
end
())
if
(
bias
!=
prog
.
end
())
{
// equation f(xt*(Wz^T) + Ht-1 * (Rz^T) + Wbz + Rbz)
auto
xt_wz
=
prog
.
insert_instruction
(
ins
,
op
::
dot
{},
xt
,
tran_wz
,
wbz
);
...
...
@@ -599,7 +599,6 @@ std::vector<instruction_ref> rewrite_rnn::gru_cell(bool is_forward,
xht_h
=
prog
.
insert_instruction
(
ins
,
op
::
add
{},
xt_wh
,
rt_rh
);
}
ht
=
prog
.
insert_instruction
(
ins
,
actv_func2
,
xht_h
);
}
// equation Ht = (1 - zt) (.) ht + zt (.) Ht-1
...
...
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