Closed hua-wu-que closed 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:
torch_sparse_solve
requires a CUDA->CPU conversion (and perhaps a CPU->CUDA conversion after). These are relatively expensive operations.torch_sparse_solve
only works for coalesced tensors. Coalescing a non-coalesced sparse tensor might be relatively expensive (depending on the size of the tensor)torch.solve
.torch.solve
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.
Hi! Thank you for this implementation. Do you have any idea on the speed compared to using torch.solve?