As the error message explains the RNN expects a 3-dimensional input in the shape [batch_size, seq_len, features] (since batch_first=True is used).



 mattpats:

I have a single feature column that I am trying to feed into a GRU neural net.


If you don’t have a temporal dimension (seq_len in the example shape), then I don’t think you need to use an RNN or could you explain your use case a bit? I.e. how should the model process the data?