Make LSTMCell non-mutable
This commit is contained in:
parent
770f601897
commit
be0133fb67
@ -112,12 +112,12 @@ RNN(a...; ka...) = Recur(RNNCell(a...; ka...))
|
|||||||
|
|
||||||
# LSTM
|
# LSTM
|
||||||
|
|
||||||
mutable struct LSTMCell{A,V}
|
struct LSTMCell{A,B,V,W,Z}
|
||||||
Wi::A
|
Wi::A
|
||||||
Wh::A
|
Wh::B
|
||||||
b::V
|
b::V
|
||||||
h::V
|
h::W
|
||||||
c::V
|
c::Z
|
||||||
end
|
end
|
||||||
|
|
||||||
function LSTMCell(in::Integer, out::Integer;
|
function LSTMCell(in::Integer, out::Integer;
|
||||||
|
Loading…
Reference in New Issue
Block a user