How to find the source code of torch.solve?
I am concerned whether torch.solve() examine the condition of the coefficient matrix for a linear system and employ desirable preconditionings; thus I am curious about its implementation details. I have read through several answers trying to track down the source file but in vain. I hope somebody can help me to locate its definition in the ATen library.

I think it just uses LAPACK for CPU and CUBLAS for GPU, since torch.solve is listed under &quot;BLAS and LAPACK Operations&quot; on the official docs.
Then we're looking for wrapper code, which I believe is this part.
