Singular value decomposition (SVD)

Computing Singular Value Decomposition (SVD) in Pytorch always give me this error:
U, _, V = torch.svd(torch.mm(src_vec, tgt_vec.t() ) )

Intel MKL ERROR: Parameter 4 was incorrect on entry to SLASCL.
RuntimeError: svd_cuda: the updating process of SBDSDC did not converge (error: 23)
Even I moved the Tensors to cpu but still getting the same issue.
Any thoughts on this issue?

If you really think there is an error with torch.svd, open an issue on pytorch github here

1 Like

I think my inputs contain nan, thats why I got an invalid svd.

how did you resolve it? do you know why you got that?