From 457d81bbc09e699ca439c7b8e087b72ee4159972 Mon Sep 17 00:00:00 2001 From: fengjiayi Date: Tue, 19 Jun 2018 21:00:15 +0800 Subject: [PATCH] fix errors --- python/paddle/fluid/backward.py | 8 ++++---- python/paddle/fluid/io.py | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/python/paddle/fluid/backward.py b/python/paddle/fluid/backward.py index 95421704db6..f7bbc98fe1f 100644 --- a/python/paddle/fluid/backward.py +++ b/python/paddle/fluid/backward.py @@ -489,10 +489,10 @@ def append_backward(loss, parameter_list=None, no_grad_set=None, Examples: .. code-block:: python - # network configuration code - # ... - avg_loss = fluid.layers.mean(loss) - param_grad_list = fluid.backward.append_backward(loss=avg_loss) + # network configuration code + # ... + avg_loss = fluid.layers.mean(loss) + param_grad_list = fluid.backward.append_backward(loss=avg_loss) """ assert isinstance(loss, framework.Variable) diff --git a/python/paddle/fluid/io.py b/python/paddle/fluid/io.py index 88e7e3bb20b..6e527572f1c 100644 --- a/python/paddle/fluid/io.py +++ b/python/paddle/fluid/io.py @@ -886,8 +886,8 @@ def load_checkpoint(executor, checkpoint_dir, serial, main_program): `checkpoint_dir` directory. In the training precess, we generally save a checkpoint in each - iteration. So there are more than one checkpoint in the - `checkpoint_dir`(each checkpoint has its own sub folder), use + iteration. So there are more than one checkpoint in the + `checkpoint_dir` (each checkpoint has its own sub folder), use `serial` to specify which serial of checkpoint you would like to load. -- GitLab