Skip to content

Commit

Permalink
Merge pull request #7874 from niboshi/test-tolerance-arithmetic
Browse files Browse the repository at this point in the history
Relax float16 tolerances in ChainerX binary math tests
  • Loading branch information
asi1024 committed Aug 8, 2019
2 parents eb97b54 + 401bcf8 commit ac25ec5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/chainerx_tests/math_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ def setup(self):

if in_dtype1 == 'float16' or in_dtype2 == 'float16':
self.check_forward_options.update({'rtol': 1e-3, 'atol': 1e-3})
self.check_backward_options.update({'rtol': 1e-3, 'atol': 1e-3})
self.check_backward_options.update({'rtol': 1e-2, 'atol': 3e-3})
self.check_double_backward_options.update(
{'rtol': 1e-3, 'atol': 1e-3})
{'rtol': 1e-2, 'atol': 3e-3})

def generate_inputs(self):
in_dtype1, in_dtype2 = self.in_dtypes
Expand Down

0 comments on commit ac25ec5

Please sign in to comment.