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
>>> import mindspore.dataset as ds >>> dataset = ds.GeneratorDataset([i for i in range(10)], "column1") >>> dataset = dataset.repeat(5) >>> repeat_count = dataset.get_repeat_count() >>> print(repeat_count) 5