ct−1 ) xt ∈ ℝd×1 ht ∈ ℝh×1 ct ∈ ℝh×1 it = σ(Wii xt + bii + Whi ht−1 + bhi ) ft = σ(Wif xt + bif + Whf ht−1 + bhf ) gt = tanh(Wig xt + big + Whg ht−1 + bhg ) ot = σ(Wio xt + bio + Who ht−1 + bho ) ct = ft ∘ ct−1 + it ∘ gt ht = ot ∘ tanh(ct ) -45. xt ht−1 ct−1 ht ct torch.nn.LSTMCellͰॻ͔Ε͍ͯΔఆٛΛ WikipediaͷLSTMͷϖʔδʹ߹Θͤͯॻ͖ͨ͠ Wii ∈ ℝh×d, Wif ∈ ℝh×d, Wig ∈ ℝh×d, Wio ∈ ℝh×d bii ∈ ℝh×1, bif ∈ ℝh×1, big ∈ ℝh×1, bio ∈ ℝh×1 Whi ∈ ℝh×h, Whf ∈ ℝh×h, Whg ∈ ℝh×h, Who ∈ ℝh×h bhi ∈ ℝh×1, bhf ∈ ℝh×1, bhg ∈ ℝh×1, bho ∈ ℝh×1 t࣌ͷೖྗ t࣌ͷӅΕঢ়ଶ t࣌ͷηϧঢ়ଶ ୯७RNNϢχοτΛվྑͯ͠ظґଘΛֶशͰ͖ΔΑ͏ʹͨ͠ͷ