Even with eps=1e-3, this code is still failing
import torch
x = torch.autograd.Variable(torch.randn(40, 20), requires_grad=True)
y = torch.autograd.Variable(torch.randn(20, 30), requires_grad=True)
res = torch.autograd.gradcheck(torch.mm, (x, y), eps=1e-3)
print(res)