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

Method __init__

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

Source from the content-addressed store, hash-verified

40 """
41
42 def __init__(self, proc_ranks):
43 if len(proc_ranks) == 0: # empty group
44 self.proc_ranks = None
45 self.stream = None
46 else:
47 self.reset(proc_ranks)
48
49 def reset(self, proc_ranks):
50 self.check(proc_ranks)

Callers

nothing calls this directly

Calls 1

resetMethod · 0.95

Tested by

no test coverage detected