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

8次阅读
没有评论

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

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

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

 

正文完
 0