You can use torch.cuda.sparse.FloatTensor:
i = torch.LongTensor([[0, 1, 1],
                          [2, 0, 2]]).cuda()
v = torch.FloatTensor([3, 4, 5]).cuda()
torch.cuda.sparse.FloatTensor(i,v, torch.Size([2,3]))

Best regards
Thomas