MCPcopy Create free account
hub / github.com/tensorpack/tensorpack / reset_state

Method reset_state

tensorpack/dataflow/parallel.py:235–238  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

233 yield dp
234
235 def reset_state(self):
236 assert not self._reset_done, "reset_state() was called twice! This violates the API of DataFlow!"
237 self._reset_done = True
238 start_proc_mask_signal(self.procs)
239
240
241class MultiProcessRunnerZMQ(_MultiProcessZMQDataFlow):

Callers

nothing calls this directly

Calls 1

start_proc_mask_signalFunction · 0.85

Tested by

no test coverage detected