cai4cai / torchsparsegradutils

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

require torch>=2.0 or workaround missing `check_sparse_tensor_invariants` #41

Closed tvercaut closed 1 year ago

tvercaut commented 1 year ago

check_sparse_tensor_invariants is not available in torch 1.13 making some unit tests fail.

We should either work around the lack of this function in 1.13 or impose torch 2.x+