mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Update ConvNextV2ModelIntegrationTest::test_inference_image_classification_head
(#23402)
fix Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
parent
ca3df9f0cf
commit
46d2468695
@ -353,5 +353,5 @@ class ConvNextV2ModelIntegrationTest(unittest.TestCase):
|
||||
expected_shape = torch.Size((1, 1000))
|
||||
self.assertEqual(outputs.logits.shape, expected_shape)
|
||||
|
||||
expected_slice = torch.tensor([-0.3083, -0.3040, -0.4344]).to(torch_device)
|
||||
expected_slice = torch.tensor([0.9996, 0.1966, -0.4386]).to(torch_device)
|
||||
self.assertTrue(torch.allclose(outputs.logits[0, :3], expected_slice, atol=1e-4))
|
||||
|
Loading…
Reference in New Issue
Block a user