#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)

Solution: Enter the loss function out to be model output value, label input index

Published 234 original articles · won praise 61 · views 120 000 +

Guess you like

Origin blog.csdn.net/weixin_42528089/article/details/104857015