图像识别-pytorch-RuntimeError: expected scalar type Long but found Int

RuntimeError: expected scalar type Long but found Int

解决方案:

data=data.long()

你可能感兴趣的:(图像识别,python)