From fcd18ef11020fbc30708ea3748390b33f53770a2 Mon Sep 17 00:00:00 2001 From: zhangchunle Date: Mon, 26 Apr 2021 20:05:19 +0800 Subject: [PATCH] fix no-value-for-parameter in iscan (#32551) --- python/paddle/fluid/distributed/ps_instance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/distributed/ps_instance.py b/python/paddle/fluid/distributed/ps_instance.py index 61b2bcad01d..42033a0ada4 100644 --- a/python/paddle/fluid/distributed/ps_instance.py +++ b/python/paddle/fluid/distributed/ps_instance.py @@ -24,7 +24,7 @@ class PaddlePSInstance(object): instance = PaddlePSInstance(1, 2) """ - def __init__(self, server_worker_mode, proc_per_node): + def __init__(self, server_worker_mode=1, proc_per_node=2): self.dh = MPIHelper() self._rankid = self.dh.get_rank() self._server_worker_mode = server_worker_mode -- GitLab