Skip to content

Commit 4805fed

Browse files
authored
Update CTCLoss_cn.rst with zero_infinity parameter
Add description for zero_infinity parameter in CTCLoss.
1 parent 8aea29b commit 4805fed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/api/paddle/nn/CTCLoss_cn.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ CTCLoss
2020
- **input_lengths** (Tensor) - 表示输入 ``log_probs`` 数据中每个序列的长度,shape 为 [batch_size]。数据类型支持 int64。
2121
- **label_lengths** (Tensor) - 表示 label 中每个序列的长度,shape 为 [batch_size]。数据类型支持 int64。
2222
- **norm_by_times** (bool,可选) - 是否根据序列长度对梯度进行正则化。数据类型支持 bool。默认值为 False。
23+
- **zero_infinity** (bool,可选) - 防止梯度出现无限,将其重置为 0,以免训练时发生爆炸。
2324

2425
返回
2526
:::::::::

0 commit comments

Comments
 (0)