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

Function _get_variables

tensorflow/python/keras/backend.py:883–889  ·  view source on GitHub ↗

Returns variables corresponding to the given graph for initialization.

(graph=None)

Source from the content-addressed store, hash-verified

881
882
883def _get_variables(graph=None):
884 """Returns variables corresponding to the given graph for initialization."""
885 assert not context.executing_eagerly()
886 variables = _GRAPH_VARIABLES.setdefault(graph, weakref.WeakSet())
887 for opt in _GRAPH_TF_OPTIMIZERS.get(graph, set()):
888 variables.update(opt.optimizer.variables())
889 return variables
890
891
892def _initialize_variables(session):

Callers 1

_initialize_variablesFunction · 0.85

Calls 5

executing_eagerlyMethod · 0.80
setdefaultMethod · 0.80
getMethod · 0.45
updateMethod · 0.45
variablesMethod · 0.45

Tested by

no test coverage detected