Skip to content

Commit

Permalink
添加dstack图例 (#6842)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeteye authored Sep 3, 2024
1 parent 558d523 commit b5ec7dc
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/dstack_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ dstack
::::::::::::
Tensor,与输入数据类型相同的堆叠张量。

也可以参考下方的图示来理解 ``dstack`` 是如何对张量进行变换的。图片展示了两个个形状为 [3] 的一维张量以及两个形状为 [3, 2] 的二维张量,这些张量在深度方向上堆叠后的结果。其中,形状为 [3] 的一维张量在堆叠时会被扩展为形状为[1, 3]的二维张量。

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

代码示例
::::::::::::

Expand Down
Binary file added docs/images/api_legend/dstack.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 b5ec7dc

Please sign in to comment.