Andrew_Brockman:

seq-to-10classifier,


What do you mean by seq-to-10 classifier? Do you mean multi-class classifier with 10 classes?
If that’s the case, your model should output a tensor with 10 values (coming from the output of the last linear layer). Hence, the predict  should be of shape like [batch_size, num_classes]. Also, your target should be constructed such that there’s one target value for each sequence (in the batch). Hence, the shape of the batch.label should be like [batch_size, 1].
Once, you can ensure this, the error should be resolved. To keep the things simple, try with batch_size = 1.