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

Function get_world_size

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

r"""Get the total number of processes participating in the job.

()

Source from the content-addressed store, hash-verified

209
210
211def get_world_size() -> int:
212 r"""Get the total number of processes participating in the job."""
213 return _sd.world_size if _sd is not None else 1
214
215
216def get_backend() -> str:

Callers 1

build_xlaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected