Skip to content

Todo functions and autograd supports for Sparse Tensor #8853

Open
@weiyangfb

Description

@weiyangfb

Here summarizes a list of requested Sparse Tensor functions and autograd supports from previous PRs. Please feel free to comment on functions that should be added also.

Functions

Wish list

  • bmm(S, D) (add an extra sparse dim at indices of SparseTensor as batch dim?)
  • broadcasting mul(S, D) -> S
  • Dataset, Dataloader
  • save, load for sparse tensors

Existing

  • autograd supported for values() via [sparse] Autograd indices/values and sparse_coo ctor #13001 (Thanks to @ssnl!), that means all element-wise ops are supported in sparse now
  • norm (cannot take dim args)
  • pow
  • clone
  • zero_
  • t_ / t
  • add_ / add(Sparse, Sparse, Scalar) -> Sparse
  • add_ / add(Dense, Sparse, Scalar) -> Dense
  • sub_ / sub(Sparse, Sparse, Scalar) -> Sparse
  • mul_ / mul(Sparse, Sparse) -> Sparse
  • mul_ / mul(Sparse, Scalar) -> Sparse
  • div_ / div(Sparse, Scalar) -> Sparse
  • addmm(Dense, Sparse, Dense, Scalar, Scalar) -> Dense
  • sspaddmm(Sparse, Sparse, Dense, Scalar, Scalar) -> Sparse
  • mm(Sparse, Dense) -> Dense
  • smm(Sparse, Dense) -> Sparse
  • hspmm(Sparse, Dense) -> HybridSparse
  • spmm(Sparse, Dense) -> Dense

Metadata

Metadata

Assignees

Labels

module: sparseRelated to torch.sparsetriagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions