• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1mindspore.dataset.Dataset.repeat
2================================
3
4.. py:method:: mindspore.dataset.Dataset.repeat(count=None)
5
6    重复此数据集 `count` 次。如果 `count` 为 ``None`` 或 ``-1`` ,则无限重复迭代。
7
8    .. note::
9        repeat和batch的顺序反映了batch的数量。建议:repeat操作在batch操作之后使用。
10
11    参数:
12        - **count** (int) - 数据集重复的次数。默认值: ``None`` 。
13
14    返回:
15        Dataset,应用了上述操作的新数据集对象。
16