MCPcopy 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_stateMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected