Has there been any updates on doing sparse x dense operation with Variables?
I can do the following,
import torch
from torch.autograd import Variable as V

i = torch.LongTensor([[0, 1, 1], [1 ,1 ,1]])
v = torch.FloatTensor([3, 4, 5])
m = torch.sparse.FloatTensor(i, v, torch.Size([2,3]))
m2 = torch.randn(3,2)
print(torch.mm(m, m2))

But adding this breaks it,
M = V(m)
M2 = V(m2)
print(torch.mm(M, M2))

Traceback (most recent call last):
  File "test_sparse.py", line 11, in <module>
    print(torch.mm(M, M2))
RuntimeError: Expected object of type Variable[torch.sparse.FloatTensor] but found type Variable[torch.FloatTensor] for argument #1 'mat2'