From a84bc86939ce87d16e4ded2e30a5304f0f9114a3 Mon Sep 17 00:00:00 2001 From: Helin Wang Date: Mon, 25 Sep 2017 13:29:47 -0700 Subject: [PATCH] fix according to comments --- doc/design/refactor/distributed_architecture.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/design/refactor/distributed_architecture.md b/doc/design/refactor/distributed_architecture.md index e8002fa67..ac7e98ccf 100644 --- a/doc/design/refactor/distributed_architecture.md +++ b/doc/design/refactor/distributed_architecture.md @@ -113,7 +113,7 @@ cost = paddle.layer.classification_cost(input=prediction, label=label) optimizer = paddle.optimizer.SGD(cost, learning_rate=0.01) session = paddle.session.NewRemote(num_trainer=3, num_ps=2, GPU_per_trainer=1) for i in range(1000): - _, cost_val = session.eval(target=[cost, optimizer]) + _, cost_val = session.eval(targets=[cost, optimizer]) print cost_val ``` @@ -131,7 +131,8 @@ is the `optimizer` variable, the neural network will be optimized once. When the target is the `cost` variable, `session.eval` returns the cost value. -For more information about `Session`, please +The Python `session` is a wrapper of the C++ `Session` class. For more +information about `Session`, please see [Design Doc: Session](./session.md). ### PaddlePaddle Converter -- GitLab