Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docathon][Add API Legend No.53]add the legend of masked_scatter #6953

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/api/paddle/masked_scatter_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ masked_scatter

返回一个 N-D 的 Tensor,Tensor 的值是根据 ``mask`` 信息,将 ``value`` 中的值逐个填充到 ``x`` 中 ``mask`` 对应为 ``True`` 的位置,``mask`` 的数据类型是 bool。

**示例图解说明**:

下图展示了示例中的情形——一个形状为[2,2]的二维张量通过 masked_scatter 操作将一维张量 value 覆盖到对应位置。

.. figure:: ../../images/api_legend/masked_scatter.png
:width: 500
:alt: 示例图示
:align: center

参数
::::::::::::

Expand Down
Binary file added docs/images/api_legend/masked_scatter.png
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个 value 部分没怎么看懂,value的值不应该是确定的么,怎么会无限到n

image

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.