Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
Fix warning in test_trainer
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanwharris committed Apr 16, 2021
1 parent 656d123 commit f0faf2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/core/test_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class DummyClassifier(nn.Module):
def __init__(self):
super().__init__()
self.backbone = nn.Sequential(nn.Flatten(), nn.Linear(28 * 28, 10))
self.head = nn.LogSoftmax()
self.head = nn.LogSoftmax(dim=1)

def forward(self, x):
return self.head(self.backbone(x))
Expand Down

0 comments on commit f0faf2b

Please sign in to comment.