From 4e6d13e35f6c8f327b4670c1c0766bd6afade7fa Mon Sep 17 00:00:00 2001 From: cuicheng01 Date: Mon, 14 Nov 2022 12:59:03 +0000 Subject: [PATCH] fix_celoss --- ppcls/loss/celoss.py | 1 - 1 file changed, 1 deletion(-) diff --git a/ppcls/loss/celoss.py b/ppcls/loss/celoss.py index a7892617..dfc3333c 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 -- GitLab