diff --git a/python/paddle/distributed/fleet/__init__.py b/python/paddle/distributed/fleet/__init__.py index 0a148625abc645f486f42519d39b8896eff12e4f..2539fa57a34b1fe6fdea6b6b847d52f765df3fa3 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 dc6e7c9b52b9a0ecf1d86a19b537d746091c0b5f..805c2d1fc734b0e2bfdfb26f44a4e712bcf9e9e4 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.