IndexError: tensors used as indices must be long, byte or bool tensors 2023年4月7日12:09:25 上面报错,添加 .type(torch.long)