Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MegEngine/MegEngine
/ _set_machine_ranks
Function
_set_machine_ranks
imperative/python/megengine/distributed/group.py:172–176 ·
view source on GitHub ↗
(ranks)
Source
from the content-addressed store, hash-verified
170
171
172
def
_set_machine_ranks(ranks) -> None:
173
global _sd
174
assert _sd is not None
175
176
_sd.machine_ranks = ranks
177
178
179
@contextmanager
Callers
1
_run_wrapped
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected