"tests/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "1c1ccaa03ff233310fbe05c2af16f11982852ba2"
Unverified Commit 27f8fa35 authored by Matthias Fey's avatar Matthias Fey Committed by GitHub
Browse files

Merge pull request #190 from mversionpenny/patch-1

Changes in the documentation of segment_csr
parents 335525a7 c0e1a8b6
...@@ -64,7 +64,7 @@ def segment_csr(src: torch.Tensor, indptr: torch.Tensor, ...@@ -64,7 +64,7 @@ def segment_csr(src: torch.Tensor, indptr: torch.Tensor,
.. math:: .. math::
\mathrm{out}_i = \mathrm{out}_i =
\sum_{j = \mathrm{indptr}[i]}^{\mathrm{indptr}[i+i]}~\mathrm{src}_j. \sum_{j = \mathrm{indptr}[i]}^{\mathrm{indptr}[i+1]-1}~\mathrm{src}_j.
Due to the use of index pointers, :meth:`segment_csr` is the fastest Due to the use of index pointers, :meth:`segment_csr` is the fastest
method to apply for grouped reductions. method to apply for grouped reductions.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment