From be0133fb6748484f3d5afdd85b6bc593e7a00a80 Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Mon, 28 Jan 2019 20:26:04 -0500 Subject: [PATCH] Make LSTMCell non-mutable --- src/layers/recurrent.jl | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/layers/recurrent.jl b/src/layers/recurrent.jl index 3b40af04..e521ee9a 100644 --- a/src/layers/recurrent.jl +++ b/src/layers/recurrent.jl @@ -112,12 +112,12 @@ RNN(a...; ka...) = Recur(RNNCell(a...; ka...)) # LSTM -mutable struct LSTMCell{A,V} +struct LSTMCell{A,B,V,W,Z} Wi::A - Wh::A + Wh::B b::V - h::V - c::V + h::W + c::Z end function LSTMCell(in::Integer, out::Integer;