MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / __init__

Method __init__

tensorflow/python/distribute/hvd_strategy.py:547–553  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

545 '''
546
547 def __init__(self, *args, **kwargs):
548 self._rank = HvdContext.get().rank
549 self._world_size = HvdContext.get().world_size
550 kwargs['sharded'] = True
551 kwargs['allow_empty'] = True
552 with ops.device('/cpu:0'):
553 super().__init__(*args, **kwargs)
554
555 @property
556 def rank(self):

Callers

nothing calls this directly

Calls 3

getMethod · 0.45
deviceMethod · 0.45
__init__Method · 0.45

Tested by

no test coverage detected