Skip to content

[pytorch] [docs] Mention that sparse COO tensors support duplicate indices #9998

@vadimkantorov

Description

@vadimkantorov

https://pytorch.org/docs/stable/torch.html?highlight=sparse_coo_tensor#torch.sparse_coo_tensor doesn't mention it and doesn't have examples.

SciPy mentions (https://docs.scipy.org/doc/scipy/reference/generated/scipy.sparse.coo_matrix.html) that the corresponding values are to be summed.

Would be useful for new users of PyTorch sparse package (like myself).

Metadata

Metadata

Assignees

Labels

module: docsRelated to our documentation, both in docs/ and docblockstodoNot as important as medium or high priority tasks, but we will work on these.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions