Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/tensorpack/tensorpack
/ __iter__
Method
__iter__
tensorpack/dataflow/parallel.py:463–467 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
461
return
self.threads[0].df.__len__()
462
463
def
__iter__(self):
464
for
k in itertools.count():
465
if
self._size > 0 and k >= self._size:
466
break
467
yield
self.queue.get()
468
469
def
__del__(self):
470
for
p in self.threads:
Callers
nothing calls this directly
Calls
2
count
Method · 0.45
get
Method · 0.45
Tested by
no test coverage detected