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
|
return cell
|
||||||
end
|
end
|
||||||
|
|
||||||
function (m::LSTMCell)(h_, x)
|
function (m::LSTMCell)((h, c), x)
|
||||||
h, c = h_ # TODO: nicer syntax on 0.7
|
|
||||||
b, o = m.b, size(h, 1)
|
b, o = m.b, size(h, 1)
|
||||||
g = m.Wi*x .+ m.Wh*h .+ b
|
g = m.Wi*x .+ m.Wh*h .+ b
|
||||||
input = σ.(gate(g, o, 1))
|
input = σ.(gate(g, o, 1))
|
||||||
|
Loading…
Reference in New Issue
Block a user