PyTorch LSTM: The Definitive Guide | cnvrg.io
https://cnvrg.io/pytorch-lstmWhen LSTM has decided what relevant information to keep, and what to discard, it then performs some computations to store the new information. These computations are performed via the input gate or sometimes known as an external input gate. To update the internal cell state, you have to do some computations before.