提交 0dd728a5 编写于 作者: Z zhaoyuchen2018 提交者: Cheerego

Fix array_read code example error. (#671)

Signed-off-by: Nzhaoyuchen <zhaoyuchen01@baidu.com>
上级 dbecff87
......@@ -79,9 +79,9 @@ array_read
.. code-block:: python
tmp = fluid.layers.zeros(shape=[10],dtype='int32')
array = fluid.layers.create_array(dtype='float32')
i = fluid.layers.fill_constant(shape=[1],dtype='int64',value=10)
arr = layers.array_read(tmp,i=i)
item = fluid.layers.array_read(array, i)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册