Skip to content

Commit

Permalink
add cn doc for ConcatDataset API (#6290)
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick-Star125 authored Nov 17, 2023
1 parent 61ee15f commit d2bc4b0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions docs/api/paddle/io/ConcatDataset_cn.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.. _cn_api_paddle_io_ConcatDataset:

ConcatDataset
-------------------------------

.. py:class:: paddle.io.ConcatDataset(dataset)
将多个数据集拼接为一个。

此 API 可用于集成多个不同的数据集。

参数
:::::::::

- **datasets** (sequence) - 待拼接的数据集序列。

返回
:::::::::

Dataset,由 ``datasets`` 拼接而成的数据集。

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

COPY-FROM: paddle.io.ConcatDataset
1 change: 1 addition & 0 deletions docs/api/paddle/io/Overview_cn.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ paddle.io 目录下包含飞桨框架数据集定义、数据读取相关的 API
" :ref:`ComposeDataset <cn_api_paddle_io_ComposeDataset>` ", "数据集字段组合接口"
" :ref:`Subset <cn_api_paddle_io_Subset>` ", "数据集取子集接口"
" :ref:`random_split <cn_api_paddle_io_random_split>` ", "给定子集合 dataset 的长度数组,随机切分出原数据集合的非重复子集合"
" :ref:`ConcatDataset <cn_api_paddle_io_ConcatDataset>` ", "数据集拼接接口"

.. _about_sampler:

Expand Down

0 comments on commit d2bc4b0

Please sign in to comment.