File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ DataParallel
1414
15151. 使用 ``paddle.distributed.spawn `` 方法启动,例如:
1616
17- ``python demo.py `` (spawn need to be called in ``__main__ `` method)
17+ ``python demo.py `` (spawn need to be called in ``__main__ `` method)
1818
19192. 使用 ``paddle.distributed.launch `` 方法启动,例如:
2020
21- ``python -m paddle.distributed.launch –selected_gpus=0,1 demo.py ``
21+ ``python -m paddle.distributed.launch –selected_gpus=0,1 demo.py ``
2222
2323其中 ``demo.py `` 脚本的代码可以是下面的示例代码。
2424
@@ -33,7 +33,7 @@ DataParallel
3333
3434返回
3535::::::::::::
36- 支持数据并行的 ``Layer `` 。
36+ 支持数据并行的 ``Layer ``。
3737
3838代码示例
3939::::::::::::
@@ -64,7 +64,7 @@ state_dict(destination=None, include_sublayers=True)
6464
6565**参数 **
6666
67- - **destination ** (dict,可选) - 如果提供 ``destination `` ,则所有参数和持久的 buffers 都将存放在 ``destination `` 中。默认值:None。
67+ - **destination ** (dict,可选) - 如果提供 ``destination ``,则所有参数和持久的 buffers 都将存放在 ``destination `` 中。默认值:None。
6868 - **include_sublayers ** (bool,可选) - 如果设置为 True,则包括子层的参数和 buffers。默认值:True。
6969
7070**返回 **
You can’t perform that action at this time.
0 commit comments