1:IndexError: Target 1 is out of bounds. 、
2:IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1)
解决方法:输入损失函数的 out 要模型输出的value, label 输入index
1:IndexError: Target 1 is out of bounds. 、
2:IndexError: Dimension out of range (expected to be in range of [-1, 0], but got 1)
解决方法:输入损失函数的 out 要模型输出的value, label 输入index