-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
torch._C._LinAlgError #4
Comments
I didn't encounter the problem before. I think your solution fine but might be slower. |
Hi, I found the solution to the problem after spending some time there. Let me know if I did a mistake. So, I found that for newer pytorch versions this is the correct way: I did come to the same conclusion as @cnexah that torch.linalg.lstsq is actually just slower.
An example output is: Time taken for linalg.solve: 0.40329957008361816, time taken for linalg.lstsq: 0.8831644058227539the difference between both tensors is 0.05662015080451965 Hope this helps future people :) |
torch._C._LinAlgError encountered after a few terations
replacing
torch.linalg.solve
bytorch.linalg.lstsq
The text was updated successfully, but these errors were encountered: