From 62cecbc835e0f399946d86a22ce5baa241f4e6cf Mon Sep 17 00:00:00 2001 From: SunAhong1993 <48579383+SunAhong1993@users.noreply.github.com> Date: Wed, 17 Apr 2019 22:01:30 +0800 Subject: [PATCH] Update SofmaxWithLoss.md --- caffe2fluid/doc/SofmaxWithLoss.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/caffe2fluid/doc/SofmaxWithLoss.md b/caffe2fluid/doc/SofmaxWithLoss.md index a74565d..7ece1d0 100644 --- a/caffe2fluid/doc/SofmaxWithLoss.md +++ b/caffe2fluid/doc/SofmaxWithLoss.md @@ -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) ``` -- GitLab