Skip to content

Commit

Permalink
[Docathon][Add API Legend No.12] (PaddlePaddle#6793)
Browse files Browse the repository at this point in the history
* [Docathon][Add API Legend No.12]

* [Docathon][Add API Legend No.12]
  • Loading branch information
lwkhahaha authored and fufu0615 committed Aug 7, 2024
1 parent 01c909d commit 6eea512
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/api/paddle/gather_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ gather
Out = [[3, 4],
[5, 6]]
下面展示了将一个形状为[3,2]的向量通过 gather 操作,沿着 axis = 0 维度,根据索引 Index = [1, 2] 获取对应的二维张量的例子。若索引为零维,则返回结果为一维张量,例如 Index = 0 ,沿着 axis = 0 维度,则返回位于图片上方的一维张量。

.. image:: ../../images/api_legend/gather.png
:width: 600
:alt: 图例

参数
::::::::::::
- **x** (Tensor) - 输入 Tensor,秩 ``rank >= 1``,支持的数据类型包括 int32、int64、float32、float64、complex64、complex128 和 uint8 (CPU)、float16(GPU) 。
Expand Down
Binary file added docs/images/api_legend/gather.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6eea512

Please sign in to comment.