From 1292c016d4ff3671ab492d2d33542eeadc715c67 Mon Sep 17 00:00:00 2001 From: seiriosPlus Date: Mon, 21 Sep 2020 13:58:56 +0800 Subject: [PATCH] fix doc --- .../api/paddle/distributed/fleet/UserDefinedRoleMaker_cn.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/paddle/api/paddle/distributed/fleet/UserDefinedRoleMaker_cn.rst b/doc/paddle/api/paddle/distributed/fleet/UserDefinedRoleMaker_cn.rst index b3c538272..6e6a9402f 100644 --- a/doc/paddle/api/paddle/distributed/fleet/UserDefinedRoleMaker_cn.rst +++ b/doc/paddle/api/paddle/distributed/fleet/UserDefinedRoleMaker_cn.rst @@ -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"]) -- GitLab