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

Method __init__

caffe2/python/timeout_guard.py:30–36  ·  view source on GitHub ↗
(self, timeout_secs)

Source from the content-addressed store, hash-verified

28class WatcherThread(threading.Thread):
29
30 def __init__(self, timeout_secs):
31 threading.Thread.__init__(self)
32 self.timeout_secs = timeout_secs
33 self.completed = False
34 self.condition = threading.Condition()
35 self.daemon = True
36 self.caller_thread = threading.current_thread()
37
38 def run(self):
39 started = time.time()

Callers

nothing calls this directly

Calls 1

ConditionMethod · 0.80

Tested by

no test coverage detected