MCPcopy
hub / github.com/horovod/horovod / rank

Method rank

horovod/common/basics.py:226–236  ·  view source on GitHub ↗

A function that returns the Horovod rank of the calling process. Returns: An integer scalar with the Horovod rank of the calling process.

(self)

Source from the content-addressed store, hash-verified

224 return cross_size
225
226 def rank(self):
227 """A function that returns the Horovod rank of the calling process.
228
229 Returns:
230 An integer scalar with the Horovod rank of the calling process.
231 """
232 rank = self.MPI_LIB_CTYPES.horovod_rank()
233 if rank == -1:
234 raise ValueError(
235 'Horovod has not been initialized; use hvd.init().')
236 return rank
237
238 def local_rank(self):
239 """A function that returns the local Horovod rank of the calling process, within the

Callers 15

trainFunction · 0.45
testFunction · 0.45
fnMethod · 0.45
trainFunction · 0.45
fnMethod · 0.45
check_exitFunction · 0.45
log_stateFunction · 0.45
trainFunction · 0.45
check_exitFunction · 0.45
log_stateFunction · 0.45
trainFunction · 0.45
check_exitFunction · 0.45

Calls

no outgoing calls

Tested by 15

trainFunction · 0.36
testFunction · 0.36
fnMethod · 0.36
trainFunction · 0.36
fnMethod · 0.36
test_timelineMethod · 0.36
test_elastic_stateMethod · 0.36
lossMethod · 0.36