Skip to content

Commit

Permalink
[Docathon][Add API Legend No.8] (PaddlePaddle#6771)
Browse files Browse the repository at this point in the history
* expand_as

* style

* image

* CI

* ci
  • Loading branch information
Sekiro-x authored and molly committed Sep 4, 2024
1 parent e3ed616 commit ef95ddc
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/expand_as_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ expand_as

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

下图展示了一个一维张量通过 expand_as 操作转变为形状为[2,3]的张量。目标张量的形状为[2,3],通过 expand_as,一维张量扩展成形状为[2,3]的张量。

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

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

Please sign in to comment.