Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Docathon][Add API Legend No.8] #6771

Merged
merged 9 commits into from
Sep 2, 2024
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感觉图片有点..不太美观,要不要试试用 latex 生成 tensor 图片?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

孙哥看看这个图怎么样

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.