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

Method __iter__

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

Source from the content-addressed store, hash-verified

568 return min(len(k) for k in self.df_lists)
569
570 def __iter__(self):
571 itrs = [k.__iter__() for k in self.df_lists]
572 try:
573 while True:
574 all_dps = [next(itr) for itr in itrs]
575 if isinstance(all_dps[0], (list, tuple)):
576 dp = list(itertools.chain(*all_dps))
577 else:
578 dp = {}
579 for x in all_dps:
580 dp.update(x)
581 yield dp
582 except StopIteration: # some of them are exhausted
583 pass
584
585
586def SelectComponent(ds, idxs):

Callers

nothing calls this directly

Calls 2

updateMethod · 0.80
__iter__Method · 0.45

Tested by

no test coverage detected