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
OpenDAS
apex
Commits
435133f1
Unverified
Commit
435133f1
authored
May 15, 2018
by
Raul Puri
Committed by
GitHub
May 15, 2018
Browse files
mLSTM cpu fix
parent
83acda92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
apex/RNN/cells.py
apex/RNN/cells.py
+1
-1
No files found.
apex/RNN/cells.py
View file @
435133f1
...
...
@@ -68,7 +68,7 @@ def mLSTMCell(input, hidden, w_ih, w_hh, w_mih, w_mhh, b_ih=None, b_hh=None):
hx
,
cx
=
hidden
m
=
F
.
linear
(
input
,
w_mih
)
*
F
.
linear
(
hidden
[
0
],
w_mhh
)
i
gates
=
F
.
linear
(
input
,
w_ih
,
b_ih
)
+
F
.
linear
(
m
,
w_hh
,
b_hh
)
gates
=
F
.
linear
(
input
,
w_ih
,
b_ih
)
+
F
.
linear
(
m
,
w_hh
,
b_hh
)
ingate
,
forgetgate
,
cellgate
,
outgate
=
gates
.
chunk
(
4
,
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