提交 164f12fa 编写于 作者: J jingqinghe

fix role maker return none

上级 eb824581
......@@ -29,6 +29,7 @@ __all__ = [
]
fleet = Fleet()
_role_maker_ = fleet._role_maker_
init = fleet.init
is_first_worker = fleet.is_first_worker
worker_index = fleet.worker_index
......
......@@ -189,6 +189,9 @@ 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.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册