todone: nicer syntax on 0.7

This commit is contained in:
Mike J Innes 2018-09-05 15:55:08 +01:00
parent 8b71350878
commit ec16a2c77d

View File

@ -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))