Hi all, I have test following code using cuda tensor, but failed.
from torch.autograd import gradgradcheck, gradcheck

inputs = [autograd.Variable(torch.randn(5, 12).double(), requires_grad=True),
              autograd.Variable(torch.randn(10, 12).double(), requires_grad=True),
              autograd.Variable(torch.randn(10).double(), requires_grad=True)]
for i in xrange(len(inputs)):
    inputs[i] = inputs[i].cuda()
test = gradcheck(lambda i, w, b : F.linear(i, w, b), inputs)
print(test)

It return False. When I remove the cuda() operation, it return True.
Is this a bug?