Skip to content

Commit 0ea3df9

Browse files
haowang101779990shanyi15
authored andcommitted
fix layers. ==> fluid.layers. (#688)
1 parent 2f163ad commit 0ea3df9

File tree

4 files changed

+79
-79
lines changed

4 files changed

+79
-79
lines changed

doc/fluid/api_cn/fluid_cn.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,10 +1015,10 @@ feed map为该program提供输入数据。fetch_list提供program训练结束后
10151015
.. code-block:: python
10161016
10171017
1018-
data = layers.data(name='X', shape=[1], dtype='float32')
1019-
hidden = layers.fc(input=data, size=10)
1018+
data = fluid.layers.data(name='X', shape=[1], dtype='float32')
1019+
hidden = fluid.layers.fc(input=data, size=10)
10201020
layers.assign(hidden, out)
1021-
loss = layers.mean(out)
1021+
loss = fluid.layers.mean(out)
10221022
adam = fluid.optimizer.Adam()
10231023
adam.minimize(loss)
10241024

doc/fluid/api_cn/initializer_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ init_on_cpu
125125
.. code-block:: python
126126
127127
with init_on_cpu():
128-
step = layers.create_global_var()
128+
step = fluid.layers.create_global_var()
129129
130130
131131

0 commit comments

Comments
 (0)