PyTorch Extension Library of Optimized Scatter Operations. Provides efficient scatter, gather, segment, and softmax operations for PyTorch tensors, commonly used in graph neural networks. Current version 2.1.2, released Oct 2023. Maintained by Rusty1s, part of the PyTorch Geometric ecosystem.
pip install torch-scatterVerified import paths — ran on the pinned version, not inferred.
Compute max over indices using scatter_max.
Use `torch_scatter.scatter_logsumexp` (new function) or remove `eps` from `scatter_softmax`.
Replace `scatter_add_(src, index, out)` with `scatter_add(src, index, dim, out=out)`.
Install using the PyTorch Geometric wheel index: `pip install torch-scatter -f https://data.pyg.org/whl/torch-{torch_version}+{cu_version}.html`.Set `unbiased=True` to compute sample standard deviation.