Skip to content

Commit

Permalink
[Docathon][Add API Legend No.30 BUAA] (PaddlePaddle#6802)
Browse files Browse the repository at this point in the history
* add a figure of squeeze function

* update squeeze png
  • Loading branch information
Whsjrczr authored and molly committed Sep 4, 2024
1 parent 9270b5e commit 16d59b2
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/squeeze_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ squeeze
Output:
out.shape = [1, 3, 5]
下图展示了 squeeze 操作的一个典型情况——一个形状为 [3, 4, 1] 的三维度张量通过 squeeze 操作删除了所有尺寸为 1 的维度,即维度 3。我们可以看到该张量变为了一个形状为 [3, 4] 的二维张量。

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

参数
:::::::::
- **x** (Tensor) - 输入的 `Tensor` ,数据类型为:float32、float64、bool、int8、int32、int64。
Expand Down
Binary file added docs/images/api_legend/squeeze.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 16d59b2

Please sign in to comment.