IndexError: tensors used as indices must be long, byte or bool tensors

2023年4月7日12:09:25

上面报错,添加 .type(torch.long)

 

  • 作者:daofeng56
  • 原文链接:https://blog.csdn.net/daofeng56/article/details/127266305
    更新时间:2023年4月7日12:09:25 ,共 26 字。