Skip to content

Commit 017323b

Browse files
authored
[API Compatibility No.154] add target alias docs for binary_cross_entropy -part (#7887)
1 parent 7699960 commit 017323b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/api/paddle/nn/functional/binary_cross_entropy_cn.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ binary_cross_entropy
3636
参数
3737
:::::::::
3838
- **input** (Tensor) - :math:`[N, *]`,其中 N 是 batch_size, ``*`` 是任意其他维度。输入数据 ``input`` 一般是 ``sigmoid`` 的输出。数据类型是 float16、float32、float64。
39-
- **label** (Tensor) - :math:`[N, *]`,标签 ``label`` 的维度、数据类型与输入 ``input`` 相同。
39+
- **label** (Tensor) - :math:`[N, *]`,标签 ``label`` 的维度、数据类型与输入 ``input`` 相同。别名:``target``。
4040
- **weight** (Tensor,可选) - 手动指定每个 batch 二值交叉熵的权重,如果指定的话,维度必须是一个 batch 的数据的维度。数据类型是 float16、float32, float64。默认值是:None。
4141
- **reduction** (str,可选) - 指定应用于输出结果的计算方式,可选值有:``'none'``, ``'mean'``, ``'sum'``。默认为 ``'mean'``,计算 ``BCELoss`` 的均值;设置为 ``'sum'`` 时,计算 ``BCELoss`` 的总和;设置为 ``'none'`` 时,则返回 bce_loss。
4242
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。

0 commit comments

Comments
 (0)