Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/fluid/api_cn/fluid_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1015,10 +1015,10 @@ feed map为该program提供输入数据。fetch_list提供program训练结束后
.. code-block:: python


data = layers.data(name='X', shape=[1], dtype='float32')
hidden = layers.fc(input=data, size=10)
data = fluid.layers.data(name='X', shape=[1], dtype='float32')
hidden = fluid.layers.fc(input=data, size=10)
layers.assign(hidden, out)
loss = layers.mean(out)
loss = fluid.layers.mean(out)
adam = fluid.optimizer.Adam()
adam.minimize(loss)

Expand Down
2 changes: 1 addition & 1 deletion doc/fluid/api_cn/initializer_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ init_on_cpu
.. code-block:: python

with init_on_cpu():
step = layers.create_global_var()
step = fluid.layers.create_global_var()



Expand Down
Loading