Skip to content

Commit

Permalink
[CI slow] Fix expected values (#27999)
Browse files Browse the repository at this point in the history
* fix expected values

* style

* test is slow
  • Loading branch information
ArthurZucker authored Dec 13, 2023
1 parent 749f94e commit ec43d68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/models/vit_msn/test_modeling_vit_msn.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,6 @@ def test_inference_image_classification_head(self):
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))

0 comments on commit ec43d68

Please sign in to comment.