From 44209694a6187312a57b6ae6e1b02fa03e2856c1 Mon Sep 17 00:00:00 2001 From: JZ-LIANG Date: Sun, 27 Sep 2020 16:07:16 +0800 Subject: [PATCH] revise example code for lars and amp --- .../api/paddle/distributed/fleet/DistributedStrategy_cn.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/paddle/api/paddle/distributed/fleet/DistributedStrategy_cn.rst b/doc/paddle/api/paddle/distributed/fleet/DistributedStrategy_cn.rst index b2803b5a0..64ddecf60 100755 --- a/doc/paddle/api/paddle/distributed/fleet/DistributedStrategy_cn.rst +++ b/doc/paddle/api/paddle/distributed/fleet/DistributedStrategy_cn.rst @@ -93,6 +93,7 @@ DistributedStrategy **示例代码** .. code-block:: python + import paddle.distributed.fleet as fleet strategy = fleet.DistributedStrategy() strategy.lars = True @@ -122,6 +123,7 @@ DistributedStrategy **示例代码** .. code-block:: python + import paddle.distributed.fleet as fleet strategy = fleet.DistributedStrategy() strategy.lamb = True -- GitLab