Pytorch ValueError: Expected target size (2, 13), got torch.Size([2]) when calling CrossEntropyLoss

前端 未结 0 1041
悲&欢浪女
悲&欢浪女 2020-11-30 08:25

I am trying to train a Pytorch LSTM network, but I\'m getting ValueError: Expected target size (2, 13), got torch.Size([2]) when I try to calculate CrossEntropy

相关标签:
回答
  • 消灭零回复
提交回复
热议问题