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

Method check

imperative/python/megengine/distributed/group.py:55–60  ·  view source on GitHub ↗
(self, proc_ranks)

Source from the content-addressed store, hash-verified

53 self.stream = _sh.get_next()
54
55 def check(self, proc_ranks):
56 assert _sd is not None, "please call init_process_group first"
57 for rank in proc_ranks:
58 assert isinstance(rank, int)
59 assert rank >= 0 and rank < _sd.world_size
60 assert _sd.proc_rank in proc_ranks
61
62 @property
63 def size(self):

Callers 1

resetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected