Skip to content

Commit

Permalink
Revert tolerance relaxations
Browse files Browse the repository at this point in the history
  • Loading branch information
hvy committed Mar 22, 2019
1 parent 778da83 commit d0f932b
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -197,7 +197,7 @@ def check_forward_outputs(self, outputs, expected_outputs):
or self.param_dtype == 'float16'):
check_running_options = {'rtol': 1e-1, 'atol': 1e-1}
else:
check_running_options = {'rtol': 1e-4, 'atol': 1e-5}
check_running_options = {'rtol': 1e-6, 'atol': 1e-5}

chainerx.testing.assert_allclose(
self.running_mean_chx, self.running_mean_ch,
Expand Down Expand Up @@ -255,7 +255,7 @@ def setup(self, float_dtype):
if x_dtype == 'float16' or param_dtype == 'float16':
self.check_forward_options.update({'rtol': 1e-1, 'atol': 1e-1})
else:
self.check_forward_options.update({'rtol': 1e-4, 'atol': 1e-5})
self.check_forward_options.update({'rtol': 1e-6, 'atol': 1e-5})

def generate_inputs(self):
x_shape = self.x_shape
Expand Down

0 comments on commit d0f932b

Please sign in to comment.