Skip to content

Commit 457d81b

Browse files
committed
fix errors
1 parent 8746725 commit 457d81b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

python/paddle/fluid/backward.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -489,10 +489,10 @@ def append_backward(loss, parameter_list=None, no_grad_set=None,
489489
Examples:
490490
.. code-block:: python
491491
492-
# network configuration code
493-
# ...
494-
avg_loss = fluid.layers.mean(loss)
495-
param_grad_list = fluid.backward.append_backward(loss=avg_loss)
492+
# network configuration code
493+
# ...
494+
avg_loss = fluid.layers.mean(loss)
495+
param_grad_list = fluid.backward.append_backward(loss=avg_loss)
496496
"""
497497
assert isinstance(loss, framework.Variable)
498498

python/paddle/fluid/io.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -886,8 +886,8 @@ def load_checkpoint(executor, checkpoint_dir, serial, main_program):
886886
`checkpoint_dir` directory.
887887
888888
In the training precess, we generally save a checkpoint in each
889-
iteration. So there are more than one checkpoint in the
890-
`checkpoint_dir`(each checkpoint has its own sub folder), use
889+
iteration. So there are more than one checkpoint in the
890+
`checkpoint_dir` (each checkpoint has its own sub folder), use
891891
`serial` to specify which serial of checkpoint you would like to
892892
load.
893893

0 commit comments

Comments
 (0)