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

Method rank

imperative/python/megengine/distributed/group.py:73–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

71
72 @property
73 def rank(self):
74 assert len(self.proc_ranks) > 0, "invalid group"
75 return self.proc_ranks.index(_sd.proc_rank)
76
77 @property
78 def comp_node(self):

Callers 11

make_from_op_nodeFunction · 0.45
full_gradMethod · 0.45
local_gradMethod · 0.45
local_gradMethod · 0.45
local_gradMethod · 0.45
opr_registerMethod · 0.45
bcast_addrMethod · 0.45
bcast_nccluniqueidMethod · 0.45
group_barrierMethod · 0.45
collect_groupsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected