python-3.x - 错误 : symeig_cpu: the algorithm failed to converge: 6 off-diagonal elements of an intermediate tridiagonal form did not converge to zero

标签 python-3.x pytorch torch

我正在尝试使用 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/

相关文章:

python - 什么时候 str 不是 str?

python - Beautifulsoup - 删除 HTML 标签

python - PyTorch 教程 freeze_support() 问题

convolution - 如何在 PyTorch conv2d 函数中使用组参数

python-3.x - 获取BERT中 '[UNK]'的值

python-3.x - openai健身房包厢空间配置

lua - 在 Torch 中,如何为我的随机下降添加动力?

Pytorch DataLoader - 选择类 STL10 数据集

torch - 在windows系统中安装torch 1.0.1.post2

python-3.x - pytorch collat​​e_fn 拒绝样本并产生另一个