From e7e5df65ace4702608914974940f5559623fbc30 Mon Sep 17 00:00:00 2001 From: jingqinghe Date: Fri, 25 Sep 2020 14:45:54 +0800 Subject: [PATCH] update code --- python/paddle/distributed/fleet/__init__.py | 1 - python/paddle/distributed/fleet/base/fleet_base.py | 3 --- 2 files changed, 4 deletions(-) diff --git a/python/paddle/distributed/fleet/__init__.py b/python/paddle/distributed/fleet/__init__.py index 0a148625abc..2539fa57a34 100644 --- a/python/paddle/distributed/fleet/__init__.py +++ b/python/paddle/distributed/fleet/__init__.py @@ -29,7 +29,6 @@ __all__ = [ ] fleet = Fleet() -_role_maker_ = fleet._role_maker_ init = fleet.init is_first_worker = fleet.is_first_worker worker_index = fleet.worker_index diff --git a/python/paddle/distributed/fleet/base/fleet_base.py b/python/paddle/distributed/fleet/base/fleet_base.py index dc6e7c9b52b..805c2d1fc73 100644 --- a/python/paddle/distributed/fleet/base/fleet_base.py +++ b/python/paddle/distributed/fleet/base/fleet_base.py @@ -189,9 +189,6 @@ class Fleet(object): paddle.distributed.init_parallel_env() return None - def _role_maker_(self): - return self._role_maker - def is_first_worker(self): """ Check whether the node is the first instance of worker. -- GitLab