提交 1292c016 编写于 作者: S seiriosPlus

fix doc

上级 4e847059
......@@ -14,9 +14,11 @@ UserDefinedRoleMaker是基于从用户自定义的参数中获取分布式相关
.. code-block:: python
import paddle.distributed.fleet as fleet
from paddle.distributed.fleet.base.role_maker import Role
fleet.UserDefinedRoleMaker(
current_id=0,
role=role_maker.Role.SERVER,
role=Role.SERVER,
worker_num=2,
server_endpoints=["127.0.0.1:36011", "127.0.0.1:36012"])
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册