Skip to content

Commit 7f94733

Browse files
committed
update Read the Docs configuration, enhance README badges
1 parent c0f4ae4 commit 7f94733

4 files changed

Lines changed: 28 additions & 19 deletions

File tree

.readthedocs.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ build:
1414
sphinx:
1515
configuration: docs/source/conf.py
1616
builder: html
17-
fail_on_warning: true
17+
fail_on_warning: false
1818

1919
# Optionally build your docs in additional formats such as PDF and ePub
2020
formats:
@@ -29,4 +29,3 @@ python:
2929
path: .
3030
extra_requirements:
3131
- docs
32-
- requirements: docs/requirements.txt

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,30 @@
11
# torchsparsegradutils: Sparsity-preserving gradient utility tools for PyTorch
22

3-
[![Python tests](https://github.com/cai4cai/torchsparsegradutils/actions/workflows/python-package.yml/badge.svg)](https://github.com/cai4cai/torchsparsegradutils/actions/workflows/python-package.yml) [![License](https://img.shields.io/github/license/cai4cai/torchsparsegradutils)](https://github.com/cai4cai/torchsparsegradutils?tab=Apache-2.0-1-ov-file#readme) [![Code Style: Black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
3+
<!-- Badges -->
4+
<p align="left">
5+
6+
<!-- Release / Distribution -->
7+
<a href="https://pypi.org/project/torchsparsegradutils/"><img alt="PyPI" src="https://img.shields.io/pypi/v/torchsparsegradutils.svg"></a>
8+
<a href="https://pypi.org/project/torchsparsegradutils/"><img alt="Python Versions" src="https://img.shields.io/pypi/pyversions/torchsparsegradutils.svg"></a>
9+
<a href="https://pypi.org/project/torchsparsegradutils/"><img alt="Downloads" src="https://img.shields.io/pypi/dm/torchsparsegradutils.svg"></a>
10+
11+
<!-- PyTorch Support -->
12+
<img alt="PyTorch 2.5+" src="https://img.shields.io/badge/PyTorch-2.5%2B-ee4c2c?logo=pytorch">
13+
<img alt="Tested 2.5 / 2.8 / nightly" src="https://img.shields.io/badge/Tested-2.5%20|%202.8%20|%20nightly-ee4c2c?logo=pytorch">
14+
15+
<!-- CI / Quality -->
16+
<a href="https://github.com/cai4cai/torchsparsegradutils/actions/workflows/python-package.yml"><img alt="Build" src="https://github.com/cai4cai/torchsparsegradutils/actions/workflows/python-package.yml/badge.svg"></a>
17+
<a href="https://readthedocs.org/projects/torchsparsegradutils"><img alt="Docs" src="https://readthedocs.org/projects/torchsparsegradutils/badge/?version=latest"></a>
18+
<a href="https://github.com/psf/black"><img alt="Code Style: Black" src="https://img.shields.io/badge/code%20style-black-000000.svg"></a>
19+
<a href="LICENSE"><img alt="License" src="https://img.shields.io/github/license/cai4cai/torchsparsegradutils"></a>
20+
21+
<!-- Optional future badges (uncomment when available) -->
22+
<!-- <a href="https://codecov.io/gh/cai4cai/torchsparsegradutils"><img alt="Coverage" src="https://codecov.io/gh/cai4cai/torchsparsegradutils/branch/main/graph/badge.svg"></a> -->
23+
<!-- <a href="https://pepy.tech/project/torchsparsegradutils"><img alt="Downloads" src="https://static.pepy.tech/badge/torchsparsegradutils"></a> -->
24+
25+
</p>
26+
27+
---
428

529
A comprehensive collection of utility functions to work with PyTorch sparse tensors, ensuring memory efficiency and supporting various sparsity-preserving tensor operations with automatic differentiation. This package addresses fundamental gaps in PyTorch's sparse tensor ecosystem, providing essential operations that preserve sparsity in gradients during backpropagation.
630

docs/requirements.txt

Lines changed: 0 additions & 16 deletions
This file was deleted.

setup.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ def readme():
4343
"sphinx-autobuild>=2021.3.14",
4444
"matplotlib>=3.5.0",
4545
"sphinx-autodoc-typehints>=1.24.0",
46+
"sphinxcontrib-bibtex>=2.5.0",
47+
"sphinx-gallery>=0.13.0",
4648
],
4749
},
4850
zip_safe=False,

0 commit comments

Comments
 (0)