Add missing atol to torch.testing.assert_close where rtol is specified (#36234)
This commit is contained in:
@@ -546,4 +546,4 @@ class InformerModelIntegrationTests(unittest.TestCase):
|
||||
|
||||
expected_slice = torch.tensor([3400.8005, 4289.2637, 7101.9209], 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