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

Method reset_state

tensorpack/dataflow/common.py:216–219  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

214 self.idx = idx
215
216 def reset_state(self):
217 super(BatchDataByShape, self).reset_state()
218 self.holder = defaultdict(list)
219 self._guard = DataFlowReentrantGuard()
220
221 def __iter__(self):
222 with self._guard:

Callers

nothing calls this directly

Calls 2

reset_stateMethod · 0.45

Tested by

no test coverage detected