MCPcopy
hub / github.com/Turing-Project/WriteGPT / __init__

Method __init__

LanguageNetwork/BERT/train.py:83–92  ·  view source on GitHub ↗

init error handler

(self, error_queue)

Source from the content-addressed store, hash-verified

81 the tracebacks to the parent process."""
82
83 def __init__(self, error_queue):
84 """ init error handler """
85 import signal
86 import threading
87 self.error_queue = error_queue
88 self.children_pids = []
89 self.error_thread = threading.Thread(
90 target=self.error_listener, daemon=True)
91 self.error_thread.start()
92 signal.signal(signal.SIGUSR1, self.signal_handler)
93
94 def add_child(self, pid):
95 """ error handler """

Callers

nothing calls this directly

Calls 1

startMethod · 0.80

Tested by

no test coverage detected