提交 2484ebdd 编写于 作者: F ForFishes

fix the gather cn

上级 5b51b2da
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册