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 0a148625ab..2539fa57a3 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 dc6e7c9b52..805c2d1fc7 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