From 1feebb5b4150882deabddd190a541f336f3be817 Mon Sep 17 00:00:00 2001 From: ivarflakstad <69173633+ivarflakstad@users.noreply.github.com> Date: Mon, 10 Feb 2025 19:22:24 +0100 Subject: [PATCH] AutoformerForPrediction test add atol (#36017) --- tests/models/autoformer/test_modeling_autoformer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/models/autoformer/test_modeling_autoformer.py b/tests/models/autoformer/test_modeling_autoformer.py index fddd3d94d4..3bd4f77b59 100644 --- a/tests/models/autoformer/test_modeling_autoformer.py +++ b/tests/models/autoformer/test_modeling_autoformer.py @@ -481,4 +481,4 @@ class AutoformerModelIntegrationTests(unittest.TestCase): expected_slice = torch.tensor([3130.6763, 4056.5293, 7053.0786], 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)