ValueError: Target size (torch.Size([10, 1])) must be the same as input size (torch.Size([10, 2]))

后端 未结 0 676
北荒
北荒 2021-02-05 03:46

A binary classification problem with Batch Size = 10. Trying to use torch.nn.BCEWithLogitsLoss().

~\\Anaconda3\\envs\\notebook\\lib\\site-packages\\torch\\nn\\functional.

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