Closed huaxinru closed 3 years ago
Please could you help me this question? I met this too.
I came up with the same problem, did you figure out why? Thank you very much!
For people who have the issues, I found a workaround by just changing symsqrt_v2(func='symeig') to symsqrt_v2(func='svd') in pytorch/sqrtm.py
. Based on the comment left there, I feel like the author favors this approach.
Hi all, apologies for the delay - busy times. These errors typically happen when the data is ill-conditioned. I favored the .symeig method because of speed, but indeed .svd tends to be more stable, because it works regardless of whether the matrix is PSD or not. So I would suggest what @ChenChengKuan proposes. If even this doesn't fix it for any of you, please let me know.
Hi, I tried to run your gradient flow code: Here is my code:
then I received this error:
RuntimeError: symeig_cpu: the algorithm failed to converge; 643 off-diagonal elements of an intermediate tridiagonal form did not converge to zero.
Do you know what is wrong? Thank you so much!