Skip to content

Commit

Permalink
[Docathon][Add API Legend No.41 unstack] (PaddlePaddle#6840)
Browse files Browse the repository at this point in the history
* 添加unstack图例

* 更新 unstack.png

* 图例说明修正
  • Loading branch information
yeteye authored Sep 11, 2024
1 parent 0e0c4c6 commit 2ed4a6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/api/paddle/unstack_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ unstack
::::::::::::
长度为 num 的 Tensor 列表,数据类型与输入 Tensor 相同,dim 为 ``(D-1)``。

也可以参考下方的图示来理解 ``unstack`` 是如何对张量进行变换的。图中分别展示了一个形状为 ``(3, 4)`` 的 Tensor 在 ``axis=1`` 和一个形状为 ``(2, 3, 3)`` 的 Tensor 在 ``axis=1`` 的 unstack 操作。

.. image:: ../../images/api_legend/unstack.png
:width: 500
:alt: 图例

代码示例
::::::::::::
Expand Down
Binary file added docs/images/api_legend/unstack.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 2ed4a6b

Please sign in to comment.