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

Method get

tensorflow/python/distribute/hvd_strategy.py:86–91  ·  view source on GitHub ↗

r'''Get singleton.

(cls)

Source from the content-addressed store, hash-verified

84
85 @classmethod
86 def get(cls):
87 r'''Get singleton.
88 '''
89 if cls._instance is None:
90 cls._instance = cls()
91 return cls._instance
92
93 @classmethod
94 @contextlib.contextmanager

Callers 15

_count_psFunction · 0.45
_count_workerFunction · 0.45
init_run_configFunction · 0.45
_is_per_replicaMethod · 0.45
testNamedTupleMethod · 0.45
_test_mv_propertiesMethod · 0.45
model_fnMethod · 0.45

Calls

no outgoing calls

Tested by 15

_is_per_replicaMethod · 0.36
testNamedTupleMethod · 0.36
_test_mv_propertiesMethod · 0.36
model_fnMethod · 0.36
_call_and_checkMethod · 0.36
model_fnMethod · 0.36
_assert_values_equalMethod · 0.36