Pytorch LSTM vs LSTMCell
Yes, you can emulate one by another, the reason for having them separate is efficiency. LSTMCell is a cell that takes arguments: Input of shape batch × input dimension; A tuple of LSTM hidden states of shape batch x hidden dimensions. It is a straightforward implementation of the equations. LSTM is a layer applying an … Read more