MCPcopy Index your code
hub / github.com/pytorch/pytorch / run_worker

Function run_worker

caffe2/python/parallel_workers.py:286–294  ·  view source on GitHub ↗
(coordinator, worker)

Source from the content-addressed store, hash-verified

284
285
286def run_worker(coordinator, worker):
287 while coordinator.is_active():
288 worker.start()
289 try:
290 worker.run()
291 except Exception as e:
292 worker.handle_exception(e)
293 finally:
294 worker.finish()

Callers

nothing calls this directly

Calls 5

handle_exceptionMethod · 0.80
is_activeMethod · 0.45
startMethod · 0.45
runMethod · 0.45
finishMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…