MCPcopy Index your code
hub / github.com/tensorpack/tensorpack / reset_state

Method reset_state

tensorpack/dataflow/parallel_map.py:30–36  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28 self._strict = strict
29
30 def reset_state(self):
31 super(_ParallelMapData, self).reset_state()
32 if not self._strict:
33 ds = RepeatedData(self.ds, -1)
34 else:
35 ds = self.ds
36 self._iter = ds.__iter__()
37
38 def _recv(self):
39 pass

Callers 6

reset_stateMethod · 0.45
reset_stateMethod · 0.45
runMethod · 0.45
reset_stateMethod · 0.45
reset_stateMethod · 0.45
parallel_map.pyFile · 0.45

Calls 2

__iter__Method · 0.95
RepeatedDataClass · 0.85

Tested by

no test coverage detected