fix integration test levit (#17555)
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user