fix_celoss

release/2.4
cuicheng01 2022-11-14 12:56:08 +00:00 committed by cuicheng01
parent 3bd78eb1d3
commit 6714a9d1f9
1 changed files with 0 additions and 1 deletions

View File

@ -51,7 +51,6 @@ class CELoss(nn.Layer):
loss = paddle.sum(x * label, axis=-1)
else:
if label.shape[-1] == x.shape[-1]:
label = F.softmax(label, axis=-1)
soft_label = True
else:
soft_label = False