flaport / torch_sparse_solve

A sparse KLU solver for PyTorch.
https://pypi.org/project/torch-sparse-solve
GNU Lesser General Public License v2.1
58 stars 4 forks source link

speed? #1

Closed hua-wu-que closed 3 years ago

hua-wu-que commented 3 years ago

Hi! Thank you for this implementation. Do you have any idea on the speed compared to using torch.solve?

flaport commented 3 years ago

It is not so easy to unambiguously describe the performance of torch_sparse_solve (or any sparse solver for that matter), because this depends on many factors related to the specific problem you are working on:

For these reasons, I do not give any specific performance metrics. Best is to just try it out for your use case and see if it is in fact faster for your specific application.