Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 328
Gravifer Avatar asked Oct 30 '25 14:10

Gravifer


1 Answers

I think it just uses LAPACK for CPU and CUBLAS for GPU, since torch.solve is listed under "BLAS and LAPACK Operations" on the official docs.

Then we're looking for wrapper code, which I believe is this part.

like image 109
Multihunter Avatar answered Nov 01 '25 12:11

Multihunter