Add missing atol to torch.testing.assert_close where rtol is specified (#36234)
This commit is contained in:
@@ -554,4 +554,4 @@ class TimeSeriesTransformerModelIntegrationTests(unittest.TestCase):
|
||||
|
||||
expected_slice = torch.tensor([2825.2749, 3584.9207, 6763.9951], device=torch_device)
|
||||
mean_prediction = outputs.sequences.mean(dim=1)
|
||||
torch.testing.assert_close(mean_prediction[0, -3:], expected_slice, rtol=1e-1)
|
||||
torch.testing.assert_close(mean_prediction[0, -3:], expected_slice, rtol=1e-1, atol=1e-1)
|
||||
|
||||
Reference in New Issue
Block a user