Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
''
&
#x27;Get singleton.
88
''
&
#x27;
89
if
cls._instance is None:
90
cls._instance = cls()
91
return
cls._instance
92
93
@classmethod
94
@contextlib.contextmanager
Callers
15
_count_ps
Function · 0.45
_count_worker
Function · 0.45
init_run_config
Function · 0.45
_is_per_replica
Method · 0.45
testNamedTuple
Method · 0.45
from_variable_aggregation
Method · 0.45
should_execute_combination
Method · 0.45
should_execute_combination
Method · 0.45
_test_mv_properties
Method · 0.45
testOnlyFirstReplicaUpdatesVariables
Method · 0.45
model_fn
Method · 0.45
testSyncOnReadVariable
Method · 0.45
Calls
no outgoing calls
Tested by
15
_is_per_replica
Method · 0.36
testNamedTuple
Method · 0.36
_test_mv_properties
Method · 0.36
testOnlyFirstReplicaUpdatesVariables
Method · 0.36
model_fn
Method · 0.36
testSyncOnReadVariable
Method · 0.36
testSyncOnReadVariableUpdate
Method · 0.36
testAssignAddMirroredVarCrossDeviceContext
Method · 0.36
testAssignSubMirroredVarCrossDeviceContext
Method · 0.36
_call_and_check
Method · 0.36
model_fn
Method · 0.36
_assert_values_equal
Method · 0.36