From b1107cf464db7e0397a999cb7ffed75387064bc8 Mon Sep 17 00:00:00 2001 From: danleifeng <52735331+danleifeng@users.noreply.github.com> Date: Wed, 11 Mar 2020 09:47:30 +0800 Subject: [PATCH] fix example bug of sampled_softmax_with_cross_entropy_cn;test=develop (#1891) --- .../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