Skip to content

Commit 52f39cf

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. Reviewed By: Balandat Differential Revision: D41482368 fbshipit-source-id: 74f99b17cd3597cd2005cf05768ff41e2723fb6a
1 parent 61fd002 commit 52f39cf

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
@@ -232,7 +232,7 @@ def test_normalize(self):
232232

233233
nlz.eval()
234234
X_unnlzd = nlz.untransform(X_nlzd)
235-
self.assertAllClose(X, X_unnlzd, atol=1e-4, rtol=1e-4)
235+
self.assertAllClose(X, X_unnlzd, atol=1e-3, rtol=1e-3)
236236
expected_bounds = torch.cat(
237237
[X.min(dim=-2, keepdim=True)[0], X.max(dim=-2, keepdim=True)[0]],
238238
dim=-2,

0 commit comments

Comments
 (0)