Questions about Sparse Operations

What operations currently exist when dealing with both sparse and dense tensors? I noticed that adding a dense tensor to a sparse one is possible, but swapping the order of the arguments led to an error.

My other question is I’m curious where the code for doing sparse/dense operations is. I tried looking at the tensor.py file, but the only mention of sparse is once at the top for a boolean flag.

look at http://pytorch.org/docs/master/sparse.html

Docs are non-existent, but the supported operations are listed.

1 Like