todone: nicer syntax on 0.7
This commit is contained in:
parent
8b71350878
commit
ec16a2c77d
@ -128,8 +128,7 @@ function LSTMCell(in::Integer, out::Integer;
|
||||
return cell
|
||||
end
|
||||
|
||||
function (m::LSTMCell)(h_, x)
|
||||
h, c = h_ # TODO: nicer syntax on 0.7
|
||||
function (m::LSTMCell)((h, c), x)
|
||||
b, o = m.b, size(h, 1)
|
||||
g = m.Wi*x .+ m.Wh*h .+ b
|
||||
input = σ.(gate(g, o, 1))
|
||||
|
Loading…
Reference in New Issue
Block a user