MCPcopy Create free account
hub / github.com/pytorch/pytorch / handle_exception

Method handle_exception

caffe2/python/parallel_workers.py:270–275  ·  view source on GitHub ↗
(self, e)

Source from the content-addressed store, hash-verified

268 self._worker_fun(self._worker_id)
269
270 def handle_exception(self, e):
271 traceback.print_exc()
272 logging.exception("Exception in worker", e)
273 self._coordinator._stop("Exception in worker {}: {}".format(
274 self._worker_id, e
275 ))
276
277 def finish(self):
278 self._metrics.put_metric(

Callers 1

run_workerFunction · 0.80

Calls 3

exceptionMethod · 0.80
_stopMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected