mindspore.dataset.Dataset.get_repeat_count

Dataset.get_repeat_count()[source]

Get the replication times in RepeatDataset. Default: 1.

Returns

int, the count of repeat.

Examples

>>> # dataset is an instance object of Dataset
>>> repeat_count = dataset.get_repeat_count()