Skip to content

Commit 2125998

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: 32371b94d3b995a2098d32f9c41bcac85753a6a8
1 parent 3d5f32d commit 2125998

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)