mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-30 17:52:35 +06:00
[CI slow
] Fix expected values (#27999)
* fix expected values * style * test is slow
This commit is contained in:
parent
749f94e460
commit
ec43d6870a
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user