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

Method exception

test/test_dataloader.py:617–623  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

615
616 @property
617 def exception(self):
618 if self._pconn.poll():
619 self._exception = self._pconn.recv()
620 if self._exception is None:
621 return None
622 else:
623 return self._exception.exc_type(self._exception.exc_msg)
624
625 # ESRCH means that os.kill can't finds alive proc
626 def send_signal(self, signum, ignore_ESRCH=False):

Callers 15

fire_callbacksMethod · 0.80
_watchdog_loopMethod · 0.80
_reap_workerMethod · 0.80
_reap_worker_no_throwMethod · 0.80
_watchdog_loopMethod · 0.80
_reap_workerMethod · 0.80
_exit_barrierMethod · 0.80
_pollMethod · 0.80
__post_init__Method · 0.80
process_mainMethod · 0.80
__torch_dispatch__Method · 0.80
write_record_to_fileFunction · 0.80

Calls 2

pollMethod · 0.80
recvMethod · 0.45

Tested by

no test coverage detected