Loosen testing eps.
@@ -119,7 +119,8 @@ class TestUnpoolingND(unittest.TestCase):
cover_all=self.cover_all)
y_2d = functions.unpooling_2d(x_data, ksize, stride=stride, pad=pad,
cover_all=self.cover_all)
- testing.assert_allclose(y_nd.data, y_2d.data)
+ testing.assert_allclose(
+ y_nd.data, y_2d.data, **self.check_forward_options)
@condition.retry(3)
def test_forward_consistency_regression_cpu(self):
@@ -175,7 +176,8 @@ class TestUnpoolingND(unittest.TestCase):
y_2d.backward()
# Test that the two result gradients are close enough.
- testing.assert_allclose(x_nd.grad, x_2d.grad)
+ testing.assert_allclose(
+ x_nd.grad, x_2d.grad, **self.check_backward_options)
@condition.retry(3)
def test_backward_consistency_regression_cpu(self):
