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

Method run

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

Source from the content-addressed store, hash-verified

414 self.daemon = True
415
416 def run(self):
417 self.df.reset_state()
418 try:
419 while True:
420 for dp in self.df:
421 if self.stopped():
422 return
423 self.queue_put_stoppable(self.queue, dp)
424 except Exception:
425 if self.stopped():
426 pass # skip duplicated error messages
427 else:
428 raise
429 finally:
430 self.stop()
431
432 def __init__(self, get_df, num_prefetch, num_thread):
433 """

Callers

nothing calls this directly

Calls 4

stoppedMethod · 0.80
queue_put_stoppableMethod · 0.80
stopMethod · 0.80
reset_stateMethod · 0.45

Tested by

no test coverage detected