Skip to content

Commit a35f507

Browse files
shubhamjain0594soumith
authored andcommitted
Update functional.py (pytorch#1298)
1 parent 6aa22be commit a35f507

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/nn/functional.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ def nll_loss(input, target, weight=None, size_average=True):
463463
See :class:`~torch.nn.NLLLoss` for details.
464464
465465
Args:
466-
input: :math:`(N, C)` where `C = number of classes`
466+
input: :math:`(N, C)` where `C = number of classes` or `(N, C, H, W)` in case of 2D - Loss
467467
target: :math:`(N)` where each value is `0 <= targets[i] <= C-1`
468468
weight (Variable, optional): a manual rescaling weight given to each
469469
class. If given, has to be a Variable of size "nclasses"

0 commit comments

Comments
 (0)