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

Method __iter__

tensorpack/dataflow/common.py:314–318  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

312 self.func = func
313
314 def __iter__(self):
315 for dp in self.ds:
316 ret = self.func(copy(dp)) # shallow copy the list
317 if ret is not None:
318 yield ret
319
320
321class MapDataComponent(MapData):

Callers 6

startMethod · 0.45
reset_stateMethod · 0.45
__iter__Method · 0.45
__iter__Method · 0.45
__iter__Method · 0.45
__iter__Method · 0.45

Calls 1

funcMethod · 0.45

Tested by

no test coverage detected