提交 457d81bb 编写于 作者: F fengjiayi

fix errors

上级 8746725a
...@@ -489,10 +489,10 @@ def append_backward(loss, parameter_list=None, no_grad_set=None, ...@@ -489,10 +489,10 @@ def append_backward(loss, parameter_list=None, no_grad_set=None,
Examples: Examples:
.. code-block:: python .. code-block:: python
# network configuration code # network configuration code
# ... # ...
avg_loss = fluid.layers.mean(loss) avg_loss = fluid.layers.mean(loss)
param_grad_list = fluid.backward.append_backward(loss=avg_loss) param_grad_list = fluid.backward.append_backward(loss=avg_loss)
""" """
assert isinstance(loss, framework.Variable) assert isinstance(loss, framework.Variable)
......
...@@ -886,8 +886,8 @@ def load_checkpoint(executor, checkpoint_dir, serial, main_program): ...@@ -886,8 +886,8 @@ def load_checkpoint(executor, checkpoint_dir, serial, main_program):
`checkpoint_dir` directory. `checkpoint_dir` directory.
In the training precess, we generally save a checkpoint in each In the training precess, we generally save a checkpoint in each
iteration. So there are more than one checkpoint in the iteration. So there are more than one checkpoint in the
`checkpoint_dir`(each checkpoint has its own sub folder), use `checkpoint_dir` (each checkpoint has its own sub folder), use
`serial` to specify which serial of checkpoint you would like to `serial` to specify which serial of checkpoint you would like to
load. load.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册