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