Skip to content

Commit

Permalink
[SCU][Docathon][Add API Legend No.7] expand (#6978)
Browse files Browse the repository at this point in the history
* expand

expand函数图例

* Update expand_cn.rst

* revise
  • Loading branch information
yangrongxinuser authored Dec 11, 2024
1 parent 7c30647 commit cca7705
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/api/paddle/expand_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ expand

``x`` 的维数和 ``shape`` 的元素数应小于等于 6,并且 ``shape`` 中的元素数应该大于等于 ``x`` 的维数。扩展的维度的维度值应该为 1。

**示例图解说明**:
Original Tensor 显示了一个形状为 [3] 的一维张量 [1, 2, 3]。通过 paddle.expand 方法(参数 ``shape = [2, 3]``)被广播扩展为一个形状为 [2, 3] 的二维张量。

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


参数
:::::::::
- **x** (Tensor) - 输入的 Tensor,数据类型为:bool、float16、float32、float64、int32、int64、uint8 或 uint16。
Expand Down
Binary file added docs/images/api_legend/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 cca7705

Please sign in to comment.