it=σ(Wiixt+bii+Whiht−1+bhi) ft=σ(Wifxt+bif+Whfht−1+bhf) gt=tanh(Wigxt+big+Whght−1+bhg) ot=σ(Wioxt+bio+Whoht−1+bfo) ct=ft⊙ct1+it⊙gt ht=ot⊙tanh(ct)

it=σ(Wiixt+bii+Whiht−1+bhi) ft=σ(Wifxt+bif+Whfht−1+bhf) gt=tanh(Wigxt+big+Whght−1+bhg) ot=σ(Wioxt+bio+Whoht−1+bfo) ct=ft⊙ct1+it⊙gt ht=ot⊙tanh(ct)