diff --git a/ppcls/loss/celoss.py b/ppcls/loss/celoss.py index a78926170c6b8edf7d85f62204f34437eeb118b2..dfc3333c2b82a35dd969547e029623b2b8a4a006 100644 --- a/ppcls/loss/celoss.py +++ b/ppcls/loss/celoss.py @@ -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