From 29c772663a7905b64fec66e452d77cd6b7ec9449 Mon Sep 17 00:00:00 2001 From: dongdaxiang Date: Mon, 17 Dec 2018 00:12:03 +0800 Subject: [PATCH] refine import path for ps_instance.py test=develop --- python/paddle/fluid/distributed/ps_instance.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/python/paddle/fluid/distributed/ps_instance.py b/python/paddle/fluid/distributed/ps_instance.py index 6b44d0cd16f..91f53102b6c 100644 --- a/python/paddle/fluid/distributed/ps_instance.py +++ b/python/paddle/fluid/distributed/ps_instance.py @@ -11,8 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and -import helper as dist_helper -import sys +from .helper import MPIHelper class PaddlePSInstance(object): @@ -26,7 +25,7 @@ class PaddlePSInstance(object): """ def __init__(self, server_worker_mode, proc_per_node): - self.dh = dist_helper.MPIHelper() + self.dh = MPIHelper() self._rankid = self.dh.get_rank() self._server_worker_mode = server_worker_mode self._proc_per_node = proc_per_node -- GitLab