cai4cai / torchsparsegradutils

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

Sparsity-preserving gradient utility tools for PyTorch

Python tests License Code Style: Black

A collection of utility functions to work with PyTorch sparse tensors. This is work-in-progress, here be dragons.

Currenly available features with backprop include:

Additional backbone solvers implemented in pytorch with no additional dependencies include:

Additional features:

Things that are missing may be listed as issues.

Installation

The provided package can be installed using:

pip install torchsparsegradutils

or

pip install git+https://github.com/cai4cai/torchsparsegradutils

Unit Tests

A number of unittests are provided, which can be run as:

python -m pytest

(Note that this also runs the tests from unittest)