MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / is_distributed

Function is_distributed

imperative/python/megengine/distributed/group.py:196–198  ·  view source on GitHub ↗

r"""Return True if the distributed process group has been initialized.

()

Source from the content-addressed store, hash-verified

194
195
196def is_distributed() -> bool:
197 r"""Return True if the distributed process group has been initialized."""
198 return _sd is not None
199
200
201def get_rank() -> int:

Callers 13

forwardMethod · 0.85
forwardMethod · 0.85
wrapperFunction · 0.85
__init__Method · 0.85
load_raw_data_from_urlFunction · 0.85
fetchMethod · 0.85
fetchMethod · 0.85
convert_params_to_xlaMethod · 0.85
compileMethod · 0.85
build_xlaFunction · 0.85
__call__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected