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

Method reset_state

tensorpack/dataflow/format.py:136–139  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

134 del self._txn
135
136 def reset_state(self):
137 self._guard = DataFlowReentrantGuard()
138 super(LMDBData, self).reset_state()
139 self._open_lmdb() # open the LMDB in the worker process
140
141 def __len__(self):
142 return self._size

Callers

nothing calls this directly

Calls 2

_open_lmdbMethod · 0.95

Tested by

no test coverage detected