diff --git a/ppcls/loss/celoss.py b/ppcls/loss/celoss.py index 134797fbfb480ff9ac204a0d3a56f57b01d9e91f..bf532f3dc295a39276a9330d40e22667710e13f9 100644 --- a/ppcls/loss/celoss.py +++ b/ppcls/loss/celoss.py @@ -47,7 +47,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