LSTM controls the learning of the representation of a sequence by gates.
at position t, LSTM controls the information that should be kept from previous states by an input gate i t , and the information that should be forgotten by a forget gate f t .