Skip to content

Commit

Permalink
update rtol
Browse files Browse the repository at this point in the history
  • Loading branch information
rohitgr7 committed Jul 27, 2020
1 parent 5ae0ef5 commit 4320329
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/models/test_grad_norm.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def on_after_backward(self):


@pytest.mark.parametrize("norm_type", [1., 1.25, 1.5, 2, 3, 5, 10, 'inf'])
def test_grad_tracking(tmpdir, norm_type, rtol=5e-3):
def test_grad_tracking(tmpdir, norm_type, rtol=1e-3):
os.environ['PL_DEV_DEBUG'] = '1'

# rtol=5e-3 respects the 3 decimals rounding in `.grad_norms` and above
Expand Down

0 comments on commit 4320329

Please sign in to comment.