Skip to content

Commit 5b438f4

Browse files
authored
change typo in CrossEntropyLoss (open-mmlab#2534)
The documentation of the use_sigmoid argument in CrossEntropyLoss currently suggests the sigmoid would be applied in addition to the softmax function. This change fixes this typo.
1 parent 190063f commit 5b438f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mmseg/models/losses/cross_entropy_loss.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ class CrossEntropyLoss(nn.Module):
199199
200200
Args:
201201
use_sigmoid (bool, optional): Whether the prediction uses sigmoid
202-
of softmax. Defaults to False.
202+
instead of softmax. Defaults to False.
203203
use_mask (bool, optional): Whether to use mask cross entropy loss.
204204
Defaults to False.
205205
reduction (str, optional): . Defaults to 'mean'.

0 commit comments

Comments
 (0)