Hi @ptrblck
Thanks for your reply.
I checked the dimension of output and target
output  torch.Size([1, 97])
target  torch.Size([97])

How can I convert the target size to [1]
I tried view(1,1)  , but that did not work