From 2484ebdd9a77625848653c908d72805349e3b905 Mon Sep 17 00:00:00 2001 From: ForFishes <2282912238@qq.com> Date: Fri, 4 Sep 2020 11:19:13 +0800 Subject: [PATCH] fix the gather cn --- doc/fluid/api_cn/layers_cn/gather_cn.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/fluid/api_cn/layers_cn/gather_cn.rst b/doc/fluid/api_cn/layers_cn/gather_cn.rst index 269a56a9b..9f213831c 100644 --- a/doc/fluid/api_cn/layers_cn/gather_cn.rst +++ b/doc/fluid/api_cn/layers_cn/gather_cn.rst @@ -45,7 +45,7 @@ gather import paddle.fluid as fluid x = fluid.layers.data(name='x', shape=[-1, 5], dtype='float32') - index = fluid.layers.data(name='index', shape=[-1, 1], dtype='int32') + index = fluid.layers.data(name='index', shape=[1], dtype='int32') output = fluid.layers.gather(x, index) -- GitLab