From 4e84705947474afbae2f008857467cccd5bbe7e9 Mon Sep 17 00:00:00 2001 From: seiriosPlus Date: Mon, 21 Sep 2020 13:42:37 +0800 Subject: [PATCH] add Fleet --- .../api/paddle/distributed/fleet/UserDefinedRoleMaker_cn.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/paddle/api/paddle/distributed/fleet/UserDefinedRoleMaker_cn.rst b/doc/paddle/api/paddle/distributed/fleet/UserDefinedRoleMaker_cn.rst index 05f61202c..b3c538272 100644 --- a/doc/paddle/api/paddle/distributed/fleet/UserDefinedRoleMaker_cn.rst +++ b/doc/paddle/api/paddle/distributed/fleet/UserDefinedRoleMaker_cn.rst @@ -31,11 +31,11 @@ UserDefinedRoleMaker是基于从用户自定义的参数中获取分布式相关 .. code-block:: python import paddle.distributed.fleet as fleet - + from paddle.distributed.fleet.base.role_maker import Role 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