Skip to main content

A collection of utility functions to work with PyTorch sparse tensors

Project description

Sparsity-preserving gradient utility tools for PyTorch

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:

  • Pairwise voxel encoder for encoding local neighbourhood relationships in a 3D spatial volume with multiple channels, into a sparse COO or CSR matrix.

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)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

torchsparsegradutils-0.1.2.tar.gz (67.4 kB view hashes)

Uploaded Source

Built Distribution

torchsparsegradutils-0.1.2-py3-none-any.whl (84.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page