Skip to content

Commit 82e39d1

Browse files
zou3519soumith
authored andcommitted
Fix MultiLabelMarginLoss docs (#3836)
1 parent 07f0364 commit 82e39d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/nn/modules/loss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ class MultiLabelMarginLoss(_Loss):
472472
473473
`y` and `x` must have the same size.
474474
475-
The criterion only considers the first non zero `y[j]` targets.
475+
The criterion only considers the first non-negative `y[j]` targets.
476476
477477
This allows for different samples to have variable amounts of target classes
478478
"""

0 commit comments

Comments
 (0)