Unverified Commit 435133f1 authored by Raul Puri's avatar Raul Puri Committed by GitHub
Browse files

mLSTM cpu fix

parent 83acda92
......@@ -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)
igates = 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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment