API symbolssparse
Copy
tensorplay.sparse.sum
- tensorplay.sparse.sum(input, dim=None, dtype=None)[source]
Sum of
input’s values overdim.Mirrors
torch.sparse.sum: with nodim(or an empty list) the result is a dense 0-dim tensor; reducing every sparse dim yields a dense tensor; a partial reduction returns a coalesced sparse COO tensor over the remaining dims with duplicate coordinates folded.dtypeconverts the input first, acting as the accumulation type.
Help improve this page
Found an error, an unclear step, or a missing example?
Was this page helpful?
