MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / __init__

Method __init__

tensorpack/dataflow/common.py:367–375  ·  view source on GitHub ↗

Args: ds (DataFlow): input DataFlow num (int): number of times to repeat ds. Set to -1 to repeat ``ds`` infinite times.

(self, ds, num)

Source from the content-addressed store, hash-verified

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 """

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected