Skip to content

Commit 146e3d6

Browse files
sdaultonfacebook-github-bot
authored andcommitted
improve test robustness for Normalize (#1518)
Summary: Pull Request resolved: #1518 see title. This bumps the tolerances. This was flaky locally. Differential Revision: https://internalfb.com/D41482368 fbshipit-source-id: 46d12d437c738f92c9f4e39c883c9898b7995f47
1 parent ce10fe1 commit 146e3d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/models/transforms/test_input.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ def test_normalize(self):
218218

219219
nlz.eval()
220220
X_unnlzd = nlz.untransform(X_nlzd)
221-
self.assertTrue(torch.allclose(X, X_unnlzd, atol=1e-4, rtol=1e-4))
221+
self.assertTrue(torch.allclose(X, X_unnlzd, atol=1e-3, rtol=1e-3))
222222
expected_bounds = torch.cat(
223223
[X.min(dim=-2, keepdim=True)[0], X.max(dim=-2, keepdim=True)[0]],
224224
dim=-2,

0 commit comments

Comments
 (0)