Target Sequence
0
0
Test Input Sequence
0
0
LSTM Cell (1 unit)
xt (current bit)  +  ht−1 (prev hidden)
ht−1 = previous ht (or 0 at start)
linear projections
ft · it · gt → Cell State ct
Forget ft
σ(Wf·[h,x]+b)
Input it
σ(Wi·[h,x]+b)
Cand gt
tanh(Wg·[h,x]+b)
ft ⊙ ct−1 + it ⊙ gt
ct−1 (prev step or 0)
Cell State ct
ct → tanh
ot (from input) ⊙ tanh(ct) → ht
Output ot
σ(Wo·[h,x]+b)
tanh(ct)
ot ⊙ tanh(ct)
Hidden State ht
ht → ht−1 next step
Dense(1) → σ
Output
0