
[英]Pytorch Tensor Error: ValueError: Expected input batch_size (1) to match target batch_size (2)
我目前正在为剪刀石头布程序创建卷积神经网络,但出现以下错误:ValueError:预期输入 batch_size (1) 与目标 batch_size (2) 匹配。 当我打印“目标”的大小时,我得到 torch.size([1,0]) 并且“输入”的大小是 torch.Size([1, 3, 1 ...