Skip to content

Commit bd80a4a

Browse files
committed
对DataParallel_cn文件做了修改,删掉了句首句尾逗号前的多余空格
1 parent 848c13e commit bd80a4a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/api/paddle/DataParallel_cn.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ DataParallel
1414

1515
1. 使用 ``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

1919
2. 使用 ``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
**返回**

0 commit comments

Comments
 (0)