当前环境:pytorch1.8
报错信息:
AttributeError: module 'torch' has no attribute 'potrf'
解决:原工程在PyTorch 0.4.0.上运行,在pytorch更新过程中,potrf模块在Pytorch1.2被移除https://github.com/pytorch/pytorch/releases/tag/v1.2.0,使用 "torch.cholesky" 代替即可解决。
当前环境:pytorch1.8
报错信息:
AttributeError: module 'torch' has no attribute 'potrf'
解决:原工程在PyTorch 0.4.0.上运行,在pytorch更新过程中,potrf模块在Pytorch1.2被移除https://github.com/pytorch/pytorch/releases/tag/v1.2.0,使用 "torch.cholesky" 代替即可解决。