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.23] #6812

Merged
merged 12 commits into from
Sep 2, 2024
7 changes: 7 additions & 0 deletions docs/api/paddle/slice_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ slice
则:
result=[[2,3,4],] # 即 data[0:1, 1:4]

下图展示了示例 1 中的情形——一个形状为[2, 4]的二维张量通过切片操作转变为形状为[1, 3]的二维张量。切片操作指定了在第 0 轴和第 1 轴上的起始和结束索引,可以清晰地看到切片操作前后张量中各元素的对应关系。

.. image:: ../../images/api_legend/slice.png
:width: 500
:alt: 图例
sunzhongkai588 marked this conversation as resolved.
Show resolved Hide resolved


参数
::::::::::::

Expand Down
Binary file added docs/images/api_legend/slice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.