我正在尝试使用 https://github.com/Michaelvll/DeepCCA
经过 20-40 次迭代后,出现以下错误:
RuntimeError: symeig_cpu: the algorithm failed to converge; 6 off-diagonal elements of an intermediate tridiagonal form did not converge to zero.
Error is generated from https://github.com/Michaelvll/DeepCCA/blob/master/objectives.py#L46
[D1, V1] = torch.symeig(SigmaHat11, eigenvectors=True)
系统配置:
- Windows 10。
- python 3.7
- torch 1.2.0
我该如何调试?
最佳答案
我遇到过类似的错误。其根本原因是 Cholesky 分解在未来的某个时刻失败了,因为张量是奇异的。
关于python-3.x - 错误 : symeig_cpu: the algorithm failed to converge: 6 off-diagonal elements of an intermediate tridiagonal form did not converge to zero,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58547160/