Add missing atol to torch.testing.assert_close where rtol is specified (#36234)

This commit is contained in:
ivarflakstad
2025-02-17 14:57:50 +01:00
committed by GitHub
parent dad513e0c2
commit 7ec35bc3bd
4 changed files with 4 additions and 4 deletions

View File

@@ -385,4 +385,4 @@ class PatchTSTModelIntegrationTests(unittest.TestCase):
device=torch_device,
)
mean_prediction = outputs.sequences.mean(dim=1)
torch.testing.assert_close(mean_prediction[-5:], expected_slice, rtol=TOLERANCE)
torch.testing.assert_close(mean_prediction[-5:], expected_slice, rtol=TOLERANCE, atol=TOLERANCE)