Hi Chris! Thanks for the reply.
Basically my output tensor in
out, _ = self.rnn(x, h_0)
gives (40,11,31) dimen
which after the line reshape becomes (440,31)
However, my label tensor has the shape (40,1,31),
how do I use them to calculate the loss. My input and label have diff dimensions. I am quite new at this. So, a more detailed reply is appreciated
I know that in CrossEntropyLoss()
Input has dim (N,C)
Target has dim N
How do I change my input and target to be compatible with the loss function while calculating correct loss