diff --git a/python/paddle/fluid/device_worker.py b/python/paddle/fluid/device_worker.py index 43d07637b9d612e0ea1842f267b69e9066cff703..7fc72191884020f4cc57c9269b636161635f06d0 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 76f06023c80e0b5c4d17083a317b3500ea0d924e..e4666deb7fabe3628856269b6c665aacec1e9ee4 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.