Torch version 0.4.1
Weird but torch.mm(Dense, Sparse) does not work but torch.mm(Sparse, Dense) works just fine. backward() also works just fine. I’ve managed to work around this by making a transpose. Thankfully my Sparse matrix is Symmetric.