Skip to content

Commit

Permalink
Fix flaky non-contig test
Browse files Browse the repository at this point in the history
  • Loading branch information
apaszke authored and soumith committed Feb 17, 2017
1 parent 1bdc281 commit 7117a90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/common_nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ def test_noncontig(self, test_case, module, input):
grad = test_case._backward(module, i, out, go)

test_case.assertEqual(out, output)
test_case.assertEqual(grad, d_input)
test_case.assertEqual(grad, d_input, 1e-4)
test_case.assertEqual(test_case._get_parameters(module)[1], d_param)

def test_cuda(self, test_case):
Expand Down

0 comments on commit 7117a90

Please sign in to comment.