Skip to content

Commit 4e23252

Browse files
sdaultonfacebook-github-bot
authored andcommitted
improve test robustness for Normalize (meta-pytorch#1518)
Summary: Pull Request resolved: meta-pytorch#1518 see title. This bumps the tolerances. This was flaky locally. Differential Revision: https://internalfb.com/D41482368 fbshipit-source-id: 75b25a85e3e1b8996c06e36045924d340607c941
1 parent 7df149c commit 4e23252

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)