|
22 | 22 |
|
23 | 23 | **[Documentation](https://pytorch-scatter.readthedocs.io)** |
24 | 24 |
|
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. |
26 | 26 | 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. |
28 | 28 |
|
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"`: |
32 | 30 |
|
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 |
34 | 34 |
|
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. |
41 | 36 |
|
42 | 37 | ## Installation |
43 | 38 |
|
|
0 commit comments