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

Function _var_key

tensorflow/python/training/optimizer.py:107–111  ·  view source on GitHub ↗
(var)

Source from the content-addressed store, hash-verified

105 return (summed_values, unique_indices, summed_counts)
106
107def _var_key(var):
108 # TODO(ashankar): Consolidate handling for eager and graph
109 if hasattr(var, "op"):
110 return (var.op.graph, var.op.name)
111 return var._unique_id # pylint: disable=protected-access
112
113
114@six.add_metaclass(abc.ABCMeta)

Callers 6

get_slotMethod · 0.70
_get_or_make_slotMethod · 0.70
_zeros_slotMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected