Skip to content

Commit ba9cfab

Browse files
committed
fix typo
1 parent f9f19eb commit ba9cfab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch_scatter/segment_csr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def segment_csr(src: torch.Tensor, indptr: torch.Tensor,
5555
size :math:`(x_0, ..., x_{m-1}, x_m, x_{m+1}, ..., x_{n-1})` and
5656
:math:`(x_0, ..., x_{m-2}, y)`, respectively, then :attr:`out` must be an
5757
:math:`n`-dimensional tensor with size
58-
:math:`(x_0, ..., x_{m-1}, y - 1, x_{m+1}, ..., x_{n-1})`.
58+
:math:`(x_0, ..., x_{m-2}, y - 1, x_{m}, ..., x_{n-1})`.
5959
Moreover, the values of :attr:`indptr` must be between :math:`0` and
6060
:math:`x_m` in ascending order.
6161
The :attr:`indptr` tensor supports broadcasting in case its dimensions do

0 commit comments

Comments
 (0)