I get the error:
NotImplementedError: Could not run ‘aten::is_coalesced’ with arguments from the ‘CPU’ backend. This could be because the operator doesn’t exist for this backend.
although all functions are listed as compatible with sparse tensors.
What can I do?
Another broader question is: There is basically nothing implemented for the torch.sparse module. Neither activation functions, loss functions, a broad range of autograd supporting Pytorch functions, nor loss or linear layers. Does it make sense to work with torch.sparse, is there any other framework for pytorch or do we have to stick with tensorflow?
torch.sparse is a work in progress with a number of things that are
not (yet) implemented (although torch.sparse does more than your
blanket statement would seem to suggest).
In general, I would not expect torch.sparse to work on “real”
neural-network problems. If your use case could potentially benefit
from torch.sparse, it could be worth trying, but as you note, many
features won’t work.