From da71df1afcff0d119299393fabcfa2a808c5c9dc Mon Sep 17 00:00:00 2001 From: Anugunj Naman Date: Mon, 6 Jun 2022 17:17:32 +0530 Subject: [PATCH] fix integration test levit (#17555) --- tests/models/levit/test_modeling_levit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/models/levit/test_modeling_levit.py b/tests/models/levit/test_modeling_levit.py index 69fb0d0e00..d5854220d1 100644 --- a/tests/models/levit/test_modeling_levit.py +++ b/tests/models/levit/test_modeling_levit.py @@ -418,6 +418,6 @@ class LevitModelIntegrationTest(unittest.TestCase): expected_shape = torch.Size((1, 1000)) self.assertEqual(outputs.logits.shape, expected_shape) - expected_slice = torch.tensor([0.0096, -1.0084, -1.4318]).to(torch_device) + expected_slice = torch.tensor([1.0448, -0.3745, -1.8317]).to(torch_device) self.assertTrue(torch.allclose(outputs.logits[0, :3], expected_slice, atol=1e-4))