Skip to content

Commit

Permalink
Update loss argument, fix warning (pytorch#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
vfdev-5 authored Aug 3, 2018
1 parent c4563dd commit ffe9b6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/ignite/metrics/test_loss.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def test_compute_on_criterion():


def test_non_averaging_loss():
loss = Loss(nn.NLLLoss(reduce=False))
loss = Loss(nn.NLLLoss(reduction='none'))

y_pred = torch.Tensor([[0.1, 0.4, 0.5], [0.1, 0.7, 0.2]]).log()
y = torch.LongTensor([2, 2])
Expand Down

0 comments on commit ffe9b6e

Please sign in to comment.