#IndexError: Target 1 is out of bounds. IndexError: Dimension out of range (expected to be in range

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

发布了234 篇原创文章 · 获赞 61 · 访问量 12万+

猜你喜欢

转载自blog.csdn.net/weixin_42528089/article/details/104857015