Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/tensorpack/tensorpack
/ reset_state
Method
reset_state
tensorpack/dataflow/parallel.py:455–458 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
453
self._size = -1
454
455
def
reset_state(self):
456
for
th in self.threads:
457
th.df.reset_state()
458
th.start()
459
460
def
__len__(self):
461
return
self.threads[0].df.__len__()
Callers
nothing calls this directly
Calls
2
reset_state
Method · 0.45
start
Method · 0.45
Tested by
no test coverage detected