Skip to content

Commit 356d0fe

Browse files
committed
update doc
1 parent 99db5b8 commit 356d0fe

File tree

19 files changed

+89
-164
lines changed

19 files changed

+89
-164
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ install:
3939
- pip install codecov
4040
- pip install sphinx
4141
- pip install sphinx_rtd_theme
42+
- pip install sphinx-autodoc-typehints
4243
script:
4344
- python -c "import torch; print(torch.__version__)"
4445
- pycodestyle .

README.md

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,17 @@
2222

2323
**[Documentation](https://pytorch-scatter.readthedocs.io)**
2424

25-
This package consists of a small extension library of highly optimized sparse update (scatter/segment) operations for the use in [PyTorch](http://pytorch.org/), which are missing in the main package.
25+
This package consists of a small extension library of highly optimized sparse update (scatter and segment) operations for the use in [PyTorch](http://pytorch.org/), which are missing in the main package.
2626
Scatter and segment operations can be roughly described as reduce operations based on a given "group-index" tensor.
27-
The package consists of the following operations:
27+
Segment operations require the "group-index" tensor to be sorted, whereas scatter operations are not subject to these requirements.
2828

29-
* [**Scatter**](https://pytorch-scatter.readthedocs.io/en/latest/functions/add.html)
30-
* [**SegmentCOO**](https://pytorch-scatter.readthedocs.io/en/latest/functions/add.html)
31-
* [**SegmentCSR**](https://pytorch-scatter.readthedocs.io/en/latest/functions/add.html)
29+
The package consists of the following operations with reduction types `"sum"|"mean"|"min"|"max"`:
3230

33-
In addition, we provide composite functions which make use of `scatter_*` operations under the hood:
31+
* [**scatter**](https://pytorch-scatter.readthedocs.io/en/latest/functions/segment.html) based on arbitrary indices
32+
* [**segment_coo**](https://pytorch-scatter.readthedocs.io/en/latest/functions/segment_coo.html) based on sorted indices
33+
* [**segment_csr**](https://pytorch-scatter.readthedocs.io/en/latest/functions/segment_csr.html) based on compressed indices via pointers
3434

35-
* [**Scatter Std**](https://pytorch-scatter.readthedocs.io/en/latest/composite/softmax.html#torch_scatter.composite.scatter_std)
36-
* [**Scatter LogSumExp**](https://pytorch-scatter.readthedocs.io/en/latest/composite/softmax.html#torch_scatter.composite.scatter_logsumexp)
37-
* [**Scatter Softmax**](https://pytorch-scatter.readthedocs.io/en/latest/composite/softmax.html#torch_scatter.composite.scatter_softmax)
38-
* [**Scatter LogSoftmax**](https://pytorch-scatter.readthedocs.io/en/latest/composite/softmax.html#torch_scatter.composite.scatter_log_softmax)
39-
40-
All included operations are broadcastable, work on varying data types, are implemented both for CPU and GPU with corresponding backward implementations, and are fully traceable via `@torch.jit.script`.
35+
All included operations are broadcastable, work on varying data types, are implemented both for CPU and GPU with corresponding backward implementations, and are fully traceable.
4136

4237
## Installation
4338

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ numpy
33
torch_nightly
44
sphinx
55
sphinx_rtd_theme
6+
sphinx-autodoc-typehints

docs/source/composite/softmax.rst

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

docs/source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
'sphinx.ext.napoleon',
1212
'sphinx.ext.viewcode',
1313
'sphinx.ext.githubpages',
14+
'sphinx_autodoc_typehints',
1415
]
1516

1617
source_suffix = '.rst'

docs/source/functions/add.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
Scatter Add
2-
===========
1+
Scatter
2+
=======
33

44
.. automodule:: torch_scatter
55
:noindex:
66

7-
.. autofunction:: scatter_add
7+
.. autofunction:: scatter

docs/source/functions/div.rst

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

docs/source/functions/logsumexp.rst

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

docs/source/functions/max.rst

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

docs/source/functions/mean.rst

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

0 commit comments

Comments
 (0)