Skip to content

Commit 114a44f

Browse files
authored
[Docathon][Fix Doc Format No.51-53]add space after attr'' (#7465)
* add space after attr'' * add space after attr'' * Change the Chinese :to the English : * add spaces around 'inf' * adjust the spaces * add space
1 parent a2ef8c2 commit 114a44f

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/api/paddle/nn/utils/clip_grad_norm__cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ clip_grad_norm\_
1515
- **parameters** (Iterable[paddle.Tensor] or paddle.Tensor) - 需要参与梯度裁剪的一个 Tensor 或者多个 Tensor。
1616
- **max_norm** (float or int) - 梯度的最大范数。
1717
- **norm_type** (float or int) - 所用 p-范数类型。可以是无穷范数的`inf`。
18-
- **error_if_nonfinite** (bool) - 如果为 True,且如果来自attr:`parameters`的梯度的总范数为`nan`、`inf``-inf`,则抛出错误。
18+
- **error_if_nonfinite** (bool) - 如果为 True,且如果来自 :attr:`parameters` 的梯度的总范数为 `nan`、 `inf``-inf`,则抛出错误。
1919

2020
返回
2121
::::::::::::

docs/api/paddle/text/Imikolov_cn.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ Imikolov
1111
参数
1212
:::::::::
1313

14-
- **data_file** (str) - 保存数据的路径,如果参数 :attr:`download`设置为 True,可设置为 None。默认为 None。
14+
- **data_file** (str) - 保存数据的路径,如果参数 :attr:`download` 设置为 True,可设置为 None。默认为 None。
1515
- **data_type** (str) - 'NGRAM'或'SEQ'。默认为'NGRAM'。
1616
- **window_size** (int) - 'NGRAM'数据滑动窗口的大小。默认为-1。
1717
- **mode** (str) - 'train' 'test' mode. Default 'train'。
1818
- **min_word_freq** (int) - 构建词典的最小词频。默认为 50。
19-
- **download** (bool) - 如果 :attr:`data_file`未设置,是否自动下载数据集。默认为 True。
19+
- **download** (bool) - 如果 :attr:`data_file` 未设置,是否自动下载数据集。默认为 True。
2020

2121
返回
2222
:::::::::

docs/api/paddle/text/Movielens_cn.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ Movielens
1212
参数
1313
:::::::::
1414

15-
- **data_file** (str) - 保存压缩数据的路径,如果参数 :attr:`download`设置为 True,可设置为 None。默认为 None。
15+
- **data_file** (str) - 保存压缩数据的路径,如果参数 :attr:`download` 设置为 True,可设置为 None。默认为 None。
1616
- **mode** (str) - 'train' 或 'test' 模式。默认为'train'。
1717
- **test_ratio** (float) - 为测试集划分的比例。默认为 0.1。
1818
- **rand_seed** (int) - 随机数种子。默认为 0。
19-
- **download** (bool) - 如果 :attr:`data_file`未设置,是否自动下载数据集。默认为 True。
19+
- **download** (bool) - 如果 :attr:`data_file` 未设置,是否自动下载数据集。默认为 True。
2020

2121
返回值
2222
:::::::::

0 commit comments

Comments
 (0)