Skip to content

Commit 2d21b03

Browse files
authored
Removed the test veryfying softmaxity of output
The model should output raw logits for nn.CrossEntropyLoss() #37
1 parent fae506d commit 2d21b03

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

tests/test_models.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,4 @@ def test_christian_model(image_shape, num_classes):
1717
y = model(x)
1818

1919
assert y.shape == (n, num_classes), f"Shape: {y.shape}"
20-
assert y.sum(dim=1).allclose(torch.ones(n), atol=1e-5), (
21-
f"Softmax output should sum to 1, but got: {y.sum()}"
22-
)
20+

0 commit comments

Comments
 (0)