File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ clip_grad_norm\_
15
15
- **parameters ** (Iterable[paddle.Tensor] or paddle.Tensor) - 需要参与梯度裁剪的一个 Tensor 或者多个 Tensor。
16
16
- **max_norm ** (float or int) - 梯度的最大范数。
17
17
- **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 `,则抛出错误。
19
19
20
20
返回
21
21
::::::::::::
Original file line number Diff line number Diff line change @@ -11,12 +11,12 @@ Imikolov
11
11
参数
12
12
:::::::::
13
13
14
- - **data_file ** (str) - 保存数据的路径,如果参数 :attr: `download`设置为 True,可设置为 None。默认为 None。
14
+ - **data_file ** (str) - 保存数据的路径,如果参数 :attr: `download ` 设置为 True,可设置为 None。默认为 None。
15
15
- **data_type ** (str) - 'NGRAM'或'SEQ'。默认为'NGRAM'。
16
16
- **window_size ** (int) - 'NGRAM'数据滑动窗口的大小。默认为-1。
17
17
- **mode ** (str) - 'train' 'test' mode. Default 'train'。
18
18
- **min_word_freq ** (int) - 构建词典的最小词频。默认为 50。
19
- - **download** (bool) - 如果 :attr:`data_file`未设置,是否自动下载数据集。默认为 True。
19
+ - **download ** (bool) - 如果 :attr: `data_file ` 未设置,是否自动下载数据集。默认为 True。
20
20
21
21
返回
22
22
:::::::::
Original file line number Diff line number Diff line change @@ -12,11 +12,11 @@ Movielens
12
12
参数
13
13
:::::::::
14
14
15
- - **data_file ** (str) - 保存压缩数据的路径,如果参数 :attr: `download`设置为 True,可设置为 None。默认为 None。
15
+ - **data_file ** (str) - 保存压缩数据的路径,如果参数 :attr: `download ` 设置为 True,可设置为 None。默认为 None。
16
16
- **mode ** (str) - 'train' 或 'test' 模式。默认为'train'。
17
17
- **test_ratio ** (float) - 为测试集划分的比例。默认为 0.1。
18
18
- **rand_seed ** (int) - 随机数种子。默认为 0。
19
- - **download** (bool) - 如果 :attr:`data_file`未设置,是否自动下载数据集。默认为 True。
19
+ - **download ** (bool) - 如果 :attr: `data_file ` 未设置,是否自动下载数据集。默认为 True。
20
20
21
21
返回值
22
22
:::::::::
You can’t perform that action at this time.
0 commit comments