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

Method run

tensorpack/predict/concurrency.py:66–74  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64 assert isinstance(self.outqueue, multiprocessing.queues.Queue)
65
66 def run(self):
67 self._init_runtime()
68 while True:
69 tid, dp = self.inqueue.get()
70 if tid == DIE:
71 self.outqueue.put((DIE, None))
72 return
73 else:
74 self.outqueue.put((tid, self.predictor(*dp)))
75
76
77class PredictorWorkerThread(StoppableThread, ShareSessionThread):

Callers

nothing calls this directly

Calls 3

_init_runtimeMethod · 0.80
putMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected