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

Method run

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

Source from the content-addressed store, hash-verified

592 self.disable_stderr = disable_stderr
593
594 def run(self):
595 set_faulthander_if_available()
596 if self.disable_stderr:
597 # Disable polluting stderr with errors that are supposed to happen.
598 with open(os.devnull, 'w') as devnull:
599 os.dup2(devnull.fileno(), sys.stderr.fileno())
600 try:
601 super().run()
602 self._cconn.send(None)
603 except Exception:
604 self._cconn.send(ExceptionWrapper(sys.exc_info()))
605 raise
606
607 def print_traces_of_all_threads(self):
608 assert self.is_alive(), "can only use print_traces_of_all_threads if the process is alive"

Callers

nothing calls this directly

Calls 3

ExceptionWrapperClass · 0.90
sendMethod · 0.45

Tested by

no test coverage detected