Skip to content

Commit

Permalink
improve test robustness for Normalize (pytorch#1518)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#1518

see title. This bumps the tolerances. This was flaky locally.

Differential Revision: https://internalfb.com/D41482368

fbshipit-source-id: 42a0b90113af4943f83779fba92cda80eb359028
  • Loading branch information
sdaulton authored and facebook-github-bot committed Nov 30, 2022
1 parent 57b69a2 commit ef44773
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/models/transforms/test_input.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def test_normalize(self):

nlz.eval()
X_unnlzd = nlz.untransform(X_nlzd)
self.assertTrue(torch.allclose(X, X_unnlzd, atol=1e-4, rtol=1e-4))
self.assertTrue(torch.allclose(X, X_unnlzd, atol=1e-3, rtol=1e-3))
expected_bounds = torch.cat(
[X.min(dim=-2, keepdim=True)[0], X.max(dim=-2, keepdim=True)[0]],
dim=-2,
Expand Down

0 comments on commit ef44773

Please sign in to comment.