We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa1e0ba commit 840149dCopy full SHA for 840149d
examples/text_graph/erniesage/models/loss.py
@@ -48,7 +48,7 @@ def __init__(self, config):
48
super(SoftmaxWithCrossEntropy, self).__init__()
49
50
def forward(self, logits, label):
51
- return paddle.mean(F.softmax_with_cross_entropy(logits, label))
+ return F.cross_entropy(logits, label, reduction="mean")
52
53
54
class HingeLoss(nn.Layer):
0 commit comments