Skip to content

Commit 5caf22d

Browse files
Aidenwu0209claude
andauthored
[API Compatibility No.114] update torch.masked_fill docs for input kwarg compatibility -part (#7753)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ed1e36e commit 5caf22d

2 files changed

Lines changed: 1 addition & 22 deletions

File tree

docs/api/paddle/masked_fill_cn.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ masked_fill
66
.. py:function:: paddle.masked_fill(x, mask, value, name=None)
77
88
9-
109
返回一个 1-D 的 Tensor,Tensor 的值是根据 ``mask`` 信息,将 ``value`` 中的值填充到 ``x`` 中 ``mask`` 对应为 ``True`` 的位置,``mask`` 的数据类型是 bool。
1110

1211
下图展示了一个例子:假设我们有一个所有元素值为 1 的 3x3 矩阵 ``x`` 和一个相同尺寸的掩码矩阵 ``Mask``,``Value`` 值为 3。
@@ -18,7 +17,7 @@ masked_fill
1817
参数
1918
::::::::::::
2019

21-
- **x** (Tensor) - 输入 Tensor,数据类型为 float,double,int,int64_t,float16 或者 bfloat16。
20+
- **x** (Tensor) - 输入 Tensor,数据类型为 float,double,int,int64_t,float16 或者 bfloat16。别名 ``input``。
2221
- **mask** (Tensor) - 布尔张量,表示要填充的位置。mask 的数据类型必须为 bool。
2322
- **value** (Scalar or 0-D Tensor):用于填充目标张量的值,数据类型为 float,double,int,int64_t,float16 或者 bfloat16。
2423
- **name** (str,可选) - 具体用法请参见 :ref:`api_guide_Name`,一般无需设置,默认值为 None。

docs/guides/model_convert/convert_from_pytorch/api_difference/args_name_diff/torch.masked_fill.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)