Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 393 Bytes

get_current_worker_info_cn.rst

File metadata and controls

21 lines (14 loc) · 393 Bytes

get_current_worker_info

.. py:function:: paddle.distributed.rpc.get_current_worker_info()

获取当前 worker 的信息。

参数

返回

WorkerInfo 对象,拥有属性 name,rank,ip,port。

代码示例

COPY-FROM: paddle.distributed.rpc.get_current_worker_info