From 07ecde522d1146a185b0dd76b8270a05f4cfef1c Mon Sep 17 00:00:00 2001 From: danleifeng <52735331+danleifeng@users.noreply.github.com> Date: Wed, 11 Mar 2020 09:21:28 +0800 Subject: [PATCH] fix example bug of sampled_softmax_with_cross_entropy_cn;test=develop (#1893) --- .../api_cn/layers_cn/sampled_softmax_with_cross_entropy_cn.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/fluid/api_cn/layers_cn/sampled_softmax_with_cross_entropy_cn.rst b/doc/fluid/api_cn/layers_cn/sampled_softmax_with_cross_entropy_cn.rst index 3097aaaab..2cbbed3a5 100644 --- a/doc/fluid/api_cn/layers_cn/sampled_softmax_with_cross_entropy_cn.rst +++ b/doc/fluid/api_cn/layers_cn/sampled_softmax_with_cross_entropy_cn.rst @@ -37,7 +37,7 @@ sampled_softmax_with_cross_entropy import paddle.fluid as fluid input = fluid.layers.data(name='data', shape=[256], dtype='float32') - label = fluid.layers.data(name='label', shape=[5], dtype='int64') + label = fluid.layers.data(name='label', shape=[1], dtype='int64') fc = fluid.layers.fc(input=input, size=100) out = fluid.layers.sampled_softmax_with_cross_entropy( logits=fc, label=label, num_samples=25) -- GitLab