cai4cai / torchsparsegradutils

A collection of utility functions to work with PyTorch sparse tensors
Apache License 2.0
24 stars 3 forks source link

Batched triangular solve #39

Closed theo-barfoot closed 1 year ago

theo-barfoot commented 1 year ago

Following the same approach as with batched sparse matrix multiplication, a sparse block diagonal matrix is used to perform the calculation over the batch elements.

Unit tests updated with pytest framework.

The previous work around due to issue GH-88890 has now been resolved for pytorch 2.0 and this is reflected in the code.