Args: ds (DataFlow): input DataFlow num (int): number of times to repeat ds. Set to -1 to repeat ``ds`` infinite times.
(self, ds, num)
| 365 | """ |
| 366 | |
| 367 | def __init__(self, ds, num): |
| 368 | """ |
| 369 | Args: |
| 370 | ds (DataFlow): input DataFlow |
| 371 | num (int): number of times to repeat ds. |
| 372 | Set to -1 to repeat ``ds`` infinite times. |
| 373 | """ |
| 374 | self.num = num |
| 375 | super(RepeatedData, self).__init__(ds) |
| 376 | |
| 377 | def __len__(self): |
| 378 | """ |