🚨🚨🚨 Remove softmax for EfficientNetForImageClassification 🚨🚨🚨 (#25501)
* Remove softmax for EfficientNet * Update integration test values * Fix up
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user