"docs/source/vscode:/vscode.git/clone" did not exist on "996a315e76f6c972c854990e6114226a91bc0a90"
Unverified Commit da71df1a authored by Anugunj Naman's avatar Anugunj Naman Committed by GitHub
Browse files

fix integration test levit (#17555)

parent 26e5e129
......@@ -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))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment