Skip to content

Commit

Permalink
[Docathon][Add API Legend No.25 split] (#6815)
Browse files Browse the repository at this point in the history
* [Docathon][Add API Legend No.25 split]

* 更新 split_cn.rst

* 修改split函数示例

* 更新 split.png

* 更新 split_cn.rst

* 更新 split_cn.rst
  • Loading branch information
yeteye authored Sep 11, 2024
1 parent 2ed4a6b commit e2dee64
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/split_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ split
将输入 Tensor 分割成多个子 Tensor。

下图展示了一个 split 的情形——一个形状为[4,4,4]的三维张量在进行 split 操作, 其中参数 ``num_or_sections`` 为 2, ``axis`` 为 2。通过比较,可以清晰地看到张量在切割前后的变化。

.. image:: ../../images/api_legend/split.png
:width: 600
:alt: 图例

参数
:::::::::
- **x** (Tensor) - 输入变量,数据类型为 bool、float16、float32、float64、uint8、int8、int32、int64 的多维 Tensor。
Expand Down
Binary file added docs/images/api_legend/split.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 e2dee64

Please sign in to comment.