Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurZucker committed Dec 13, 2023
1 parent 2fd4105 commit 3a8e079
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.5588, 0.6853, -0.5929]).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 3a8e079

Please sign in to comment.