Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/tensorpack/tensorpack
/ __iter__
Method
__iter__
tensorpack/dataflow/common.py:386–392 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
384
return
len(self.ds) * self.num
385
386
def
__iter__(self):
387
if
self.num == -1:
388
while
True:
389
yield
from
self.ds
390
else
:
391
for
_ in range(self.num):
392
yield
from
self.ds
393
394
395
class
RepeatedDataPoint(ProxyDataFlow):
Callers
1
reset_state
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected