torch.save('/tmp/test.t7', model)
local otherModel = torch.load('/tmp/test.t7')
print('Gradient estimate error ' .. checkGrad(otherModel, criterion, input, output, epsilon))
torch.save('/tmp/test.t7', model)
local otherModel = torch.load('/tmp/test.t7')
print('Gradient estimate error ' .. checkGrad(otherModel, criterion, input, output, epsilon))