RNNs in PyTorch expect the input to have a temporal dimension. The default input shape would be [seq_len, batch_size, features], where seq_len defines the temporal sequence length.
You could use batch_first=True, which would then expect an input of [batch_size, seq_len, features].
The RNN would execute the corresponding operations on the complete sequence length automatically.