[CI slow] Fix expected values (#27999)

* fix expected values

* style

* test is slow
This commit is contained in:
Arthur 2023-12-13 13:37:10 +01:00 committed by GitHub
parent 749f94e460
commit ec43d6870a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -227,6 +227,6 @@ class ViTMSNModelIntegrationTest(unittest.TestCase):
expected_shape = torch.Size((1, 1000))
self.assertEqual(outputs.logits.shape, expected_shape)
expected_slice = torch.tensor([-0.0803, -0.4454, -0.2375]).to(torch_device)
expected_slice = torch.tensor([0.5588, 0.6853, -0.5929]).to(torch_device)
self.assertTrue(torch.allclose(outputs.logits[0, :3], expected_slice, atol=1e-4))