From a53c8cd5a7c18868e67e2d727ead90bde1e7f951 Mon Sep 17 00:00:00 2001 From: dongdaxiang Date: Sat, 30 Mar 2019 18:54:18 +0800 Subject: [PATCH] fix infer_from_dataset docs and abastract class problem test=develop --- python/paddle/fluid/device_worker.py | 2 +- python/paddle/fluid/executor.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/python/paddle/fluid/device_worker.py b/python/paddle/fluid/device_worker.py index 43d07637b9d..7fc72191884 100644 --- a/python/paddle/fluid/device_worker.py +++ b/python/paddle/fluid/device_worker.py @@ -17,7 +17,7 @@ __all__ = ['DeviceWorker', 'Hogwild', 'DownpourSGD'] class DeviceWorker(object): """ - DeviceWorker is a abstract class, which generates worker desc. + DeviceWorker is an abstract class, which generates worker desc. This class is an inner class that we do computation logics within the implementation. For example, execution of a program or a graph. """ diff --git a/python/paddle/fluid/executor.py b/python/paddle/fluid/executor.py index 76f06023c80..e4666deb7fa 100644 --- a/python/paddle/fluid/executor.py +++ b/python/paddle/fluid/executor.py @@ -671,6 +671,7 @@ class Executor(object): push gradients will be disabled in infer_from_dataset. infer_from_dataset() can be used for evaluation in multi-thread very easily. + Args: program(Program|CompiledProgram): the program that needs to be run, if not provided, then default_main_program (not compiled) will be used. -- GitLab