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: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
321
class
MapDataComponent(MapData):
Callers
6
start
Method · 0.45
reset_state
Method · 0.45
__iter__
Method · 0.45
__iter__
Method · 0.45
__iter__
Method · 0.45
__iter__
Method · 0.45
Calls
1
func
Method · 0.45
Tested by
no test coverage detected