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.33] #6923

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added debugging_cn.md
Empty file.
7 changes: 6 additions & 1 deletion docs/api/paddle/tile_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ tile

``x`` 的维数和 ``repeat_times`` 中的元素数量应小于等于 6。

下图展示了内容为 [1, 2, 3]的一个一维张量沿着第一个维度重复 2 次,沿着第二个维度重复 1 次,结果是一个形状为 [2, 3] 的二维张量;以及沿着第一个维度重复 2 次,沿着第二个维度也重复 2 次。结果是一个形状为 [2, 6] 的张量。

.. image:: ../../images/api_legend/tile.png
:width: 600

参数
:::::::::
- **x** (Tensor) - 输入的 Tensor,数据类型为:bool、float16、float32、float64、int32 或 int64。
Expand All @@ -20,6 +25,6 @@ tile
``Tensor``,数据类型与 ``x`` 相同。返回值的第 i 维的大小等于 ``x[i] * repeat_times[i]`` 。

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

COPY-FROM: paddle.tile
Binary file added docs/images/api_legend/tile.png
Copy link
Collaborator

@sunzhongkai588 sunzhongkai588 Nov 1, 2024

Choose a reason for hiding this comment

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

有些没看懂这个图例的维度。

  • 一开始是shape[3]的 1d tenor shape,应该不会有axis=1,除非它是[[1,2,3]]
  • 后两张图的 axis 也标错了,一般来说2d tensor的axis只有0和1,axis=0一般代表行,axis=1一般代表列,如:
image
  • 图片尽量美观吧,比如箭头太大了且有些不好看,tensor的颜色也可以改一改

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added index_cn.rst
Copy link
Collaborator

Choose a reason for hiding this comment

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

这个空文件是啥

Empty file.