We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58afe1b commit 4d51facCopy full SHA for 4d51fac
tests/models/base.py
@@ -201,6 +201,6 @@ def test_preserve_forward_output(self):
201
output = model(input_tensor)
202
203
self.assertEqual(output.shape, output_tensor.shape)
204
- is_close = torch.allclose(output, output_tensor, atol=1e-2)
+ is_close = torch.allclose(output, output_tensor, atol=5e-2)
205
max_diff = torch.max(torch.abs(output - output_tensor))
206
self.assertTrue(is_close, f"Max diff: {max_diff}")
0 commit comments