Input x_t
Previous h_{t-1}
Previous c_{t-1}
↓
LSTM Cell
Forget Gate (f_t)
σ(W_f·[h,x] + b_f)
Input Gate (i_t)
σ(W_i·[h,x] + b_i)
Cell Candidate (c̃_t)
tanh(W_c·[h,x] + b_c)
Output Gate (o_t)
σ(W_o·[h,x] + b_o)
Cell State (c_t)
f_t ⊙ c_{t-1} + i_t ⊙ c̃_t
↓
Output h_t