🚨🚨🚨 Remove softmax for EfficientNetForImageClassification 🚨🚨🚨 (#25501)

* Remove softmax for EfficientNet

* Update integration test values

* Fix up
This commit is contained in:
amyeroberts
2023-08-14 17:08:47 +01:00
committed by GitHub
parent 06a1d75bd5
commit c41291965f
2 changed files with 1 additions and 3 deletions

View File

@@ -265,5 +265,5 @@ class EfficientNetModelIntegrationTest(unittest.TestCase):
expected_shape = torch.Size((1, 1000))
self.assertEqual(outputs.logits.shape, expected_shape)
expected_slice = torch.tensor([0.0001, 0.0002, 0.0002]).to(torch_device)
expected_slice = torch.tensor([-0.2962, 0.4487, 0.4499]).to(torch_device)
self.assertTrue(torch.allclose(outputs.logits[0, :3], expected_slice, atol=1e-4))