Skip to content

Commit

Permalink
[Docathon][Add API Legend No.23] (PaddlePaddle#6812)
Browse files Browse the repository at this point in the history
* 修改参数名不统一的错误,如kernel_size->kernel_sizes,dilation->dilations

* 为slice文档添加图例

* 为slice文档添加图例

* 为slice文档添加图例

* Update docs/api/paddle/slice_cn.rst

* 更新slice文档

* 更新slice文档图例大小

* 更新slice文档图例大小

---------

Co-authored-by: zachary sun <70642955+sunzhongkai588@users.noreply.github.com>
  • Loading branch information
2 people authored and molly committed Sep 4, 2024
1 parent 026ba06 commit e3ed616
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
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: 图例


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

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.

0 comments on commit e3ed616

Please sign in to comment.