Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ _before_fork
Method
_before_fork
deepspeed/runtime/python_gc.py:26–27 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
24
after_in_child=self._after_fork_child)
25
26
def
_before_fork(self):
27
self._lock.acquire()
28
29
def
_after_fork_parent(self):
30
self._lock.release()
Callers
nothing calls this directly
Calls
1
acquire
Method · 0.80
Tested by
no test coverage detected