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

Function track_variable

tensorflow/python/keras/backend.py:824–831  ·  view source on GitHub ↗

Tracks the given variable for initialization.

(v)

Source from the content-addressed store, hash-verified

822
823
824def track_variable(v):
825 """Tracks the given variable for initialization."""
826 if context.executing_eagerly():
827 return
828 graph = v.graph if hasattr(v, 'graph') else get_graph()
829 if graph not in _GRAPH_VARIABLES:
830 _GRAPH_VARIABLES[graph] = object_identity.ObjectIdentityWeakSet()
831 _GRAPH_VARIABLES[graph].add(v)
832
833
834def unique_object_name(name,

Callers 3

variableFunction · 0.85
zerosFunction · 0.85
onesFunction · 0.85

Calls 3

get_graphFunction · 0.85
executing_eagerlyMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected