Hi,
input_size or “no. of expected features” denotes the dimensionality of each observation; in this case, 2.
Also, your input to nn.RNN  should be in the shape of [seq_len, batch_size, input_size]. At every timestep, the RNN receives a [t, :, :] matrix that contains all the observations at timestep t from all the batches.