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

Commit

Permalink
change for log softmax
Browse files Browse the repository at this point in the history
  • Loading branch information
tchaton committed Apr 21, 2021
1 parent 644f062 commit 2fed6a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/core/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ class Foo(ImageClassifier):

def test_optimization(tmpdir):

model = nn.Sequential(nn.Flatten(), nn.Linear(28 * 28, 10), nn.Softmax())
model = nn.Sequential(nn.Flatten(), nn.Linear(28 * 28, 10), nn.LogSoftmax())
optim = torch.optim.Adam(model.parameters())
task = ClassificationTask(model, optimizer=optim, scheduler=None)

Expand Down

0 comments on commit 2fed6a2

Please sign in to comment.