@@ -22,16 +22,18 @@ def segment_mean_csr(src: torch.Tensor, indptr: torch.Tensor,
2222
2323
2424@torch .jit .script
25- def segment_min_csr (src : torch .Tensor , indptr : torch .Tensor ,
26- out : Optional [torch .Tensor ] = None
27- ) -> Tuple [torch .Tensor , torch .Tensor ]:
25+ def segment_min_csr (
26+ src : torch .Tensor , indptr : torch .Tensor ,
27+ out : Optional [torch .Tensor ] = None
28+ ) -> Tuple [torch .Tensor , torch .Tensor ]:
2829 return torch .ops .torch_scatter .segment_min_csr (src , indptr , out )
2930
3031
3132@torch .jit .script
32- def segment_max_csr (src : torch .Tensor , indptr : torch .Tensor ,
33- out : Optional [torch .Tensor ] = None
34- ) -> Tuple [torch .Tensor , torch .Tensor ]:
33+ def segment_max_csr (
34+ src : torch .Tensor , indptr : torch .Tensor ,
35+ out : Optional [torch .Tensor ] = None
36+ ) -> Tuple [torch .Tensor , torch .Tensor ]:
3537 return torch .ops .torch_scatter .segment_max_csr (src , indptr , out )
3638
3739
@@ -51,7 +53,7 @@ def segment_csr(src: torch.Tensor, indptr: torch.Tensor,
5153 Formally, if :attr:`src` and :attr:`indptr` are :math:`n`-dimensional and
5254 :math:`m`-dimensional tensors with
5355 size :math:`(x_0, ..., x_{m-1}, x_m, x_{m+1}, ..., x_{n-1})` and
54- :math:`(x_0, ..., x_{m-1 }, y)`, respectively, then :attr:`out` must be an
56+ :math:`(x_0, ..., x_{m-2 }, y)`, respectively, then :attr:`out` must be an
5557 :math:`n`-dimensional tensor with size
5658 :math:`(x_0, ..., x_{m-1}, y - 1, x_{m+1}, ..., x_{n-1})`.
5759 Moreover, the values of :attr:`indptr` must be between :math:`0` and
0 commit comments