未验证 提交 62cecbc8 编写于 作者: S SunAhong1993 提交者: GitHub

Update SofmaxWithLoss.md

上级 5633aa65
......@@ -28,7 +28,7 @@ paddle.fluid.layers.softmax_with_cross_entropy(
label,
soft_label=False,
ignore_index=-100,
numeric_stable_mode=False,
numeric_stable_mode=True,
return_softmax=False
)
```
......@@ -83,7 +83,7 @@ layer {
# label输入shape:(100,1)
# 输出shape:(10,1)
softmaxwithloss = fluid.layers.softmax_with_cross_entropy(logits=logs, label=labels,
soft_label=False, ignore_index=-100,
soft_label=True, ignore_index=-100,
numeric_stable_mode=False,
return_softmax=False)
```
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册