From 09e154945dcc6e904b3c3345a7e1fc6cb41e83a2 Mon Sep 17 00:00:00 2001 From: hvy Date: Tue, 21 Nov 2017 07:53:50 +0000 Subject: [PATCH] Adjust tolerances for im2col tests --- .../functions_tests/array_tests/test_im2col.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/chainer_tests/functions_tests/array_tests/test_im2col.py b/tests/chainer_tests/functions_tests/array_tests/test_im2col.py index ec29ff92be7a..76053309b2ab 100644 --- a/tests/chainer_tests/functions_tests/array_tests/test_im2col.py +++ b/tests/chainer_tests/functions_tests/array_tests/test_im2col.py @@ -116,14 +116,14 @@ def setUp(self): self.ggx = numpy.random.uniform( size=self.in_shape).astype(self.dtype) - self.check_backward_options = {} + self.check_backward_options = {'atol': 5e-4, 'rtol': 5e-3} if self.dtype is numpy.float16: - self.check_backward_options.update({'atol': 5e-4, 'rtol': 5e-3}) + self.check_backward_options.update({'atol': 1e-3, 'rtol': 1e-2}) - self.check_double_backward_options = {} + self.check_double_backward_options = {'atol': 5e-4, 'rtol': 5e-3} if self.dtype is numpy.float16: self.check_double_backward_options.update( - {'atol': 5e-4, 'rtol': 5e-3}) + {'atol': 1e-3, 'rtol': 1e-2}) def check_backward(self, x, ksize, stride, pad, cover_all, dilate, gy): def f(x):