NoreOxford:

No, there’s no temporal information in my data. It’s just sentences with a sentiment score.


If you are dealing with “sequences”, it sounds like a temporal dimension.
How else are these samples ordered, if not along a timeline?
If you don’t have temporal information, I would assume you don’t need the nn.LSTM in your model and just remove the reshaping etc.



 NoreOxford:

I guess what I am trying to figure out is where in the code does it first require the dimensions to be 3, so I can change that.


The nn.LSTM requires three dimensions as [batch_size, seq_len, nb_features] (if batch_first=True as in your code snippet).