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:
segment_mm
and gather_mm
- as provided by dgl.ops.segment_mm
, pyg_lib.ops.segment_matmul
, and dgl.ops.gather_mm
)Things that are missing may be listed as issues.
The provided package can be installed using:
pip install torchsparsegradutils
or
pip install git+https://github.com/cai4cai/torchsparsegradutils
A number of unittests are provided, which can be run as:
python -m pytest
(Note that this also runs the tests from unittest
)