Skip to content

Commit

Permalink
[Add API Legend No.7] add the picture of expand(PaddlePaddle#6956)
Browse files Browse the repository at this point in the history
  • Loading branch information
rich04lin committed Nov 17, 2024
1 parent c3e4e0c commit 57c4e3e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/api/paddle/expand_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ expand
根据 ``shape`` 指定的形状扩展 ``x``,扩展后,``x`` 的形状和 ``shape`` 指定的形状一致。

``x`` 的维数和 ``shape`` 的元素数应小于等于 6,并且 ``shape`` 中的元素数应该大于等于 ``x`` 的维数。扩展的维度的维度值应该为 1。
**示例图解说明**:

下图展示了示例中的情形——data矩阵[1,2,3],是一个一行三列的矩阵,通过shape指定data扩展后的形状,在此shape为[[1,2,3],
[4,5,6]]的两行三列矩阵,最后输出一个[[1,2,3],
[1,2,3]]的两行三列的矩阵

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

参数
:::::::::
Expand Down
Binary file added docs/images/expand.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 57c4e3e

Please sign in to comment.