diff --git a/doc/fluid/api_cn/layers_cn.rst b/doc/fluid/api_cn/layers_cn.rst index e383514eaa41825122d3b7391b02990a2bb7f945..3591c06cd7ec53f1d7ae4af2de824a9ebfdf799b 100644 --- a/doc/fluid/api_cn/layers_cn.rst +++ b/doc/fluid/api_cn/layers_cn.rst @@ -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)