未验证 提交 2cd0bf57 编写于 作者: S ShenLiang 提交者: GitHub

Fix doc of fleet api (#29282)

* fix doc, test=document_fix
上级 c00af944
......@@ -93,7 +93,7 @@ class Fleet(object):
paddle.enable_static()
import paddle.distributed.fleet as fleet
strategy = fleet.DistributedStrategy()
fleet.init(strategy)
fleet.init(strategy=strategy)
optimizer = paddle.optimizer.SGD(learning_rate=0.001)
optimizer = fleet.distributed_optimizer(optimizer)
......@@ -176,7 +176,7 @@ class Fleet(object):
import paddle.distributed.fleet as fleet
strategy = fleet.DistributedStrategy()
fleet.init(strategy)
fleet.init(strategy=strategy)
"""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册