Replace set, dict with ObjectIdentityDict/Set to prepare for eq implementation

PiperOrigin-RevId: 261786323
This commit is contained in:
Yanhua Sun 2019-08-05 15:45:17 -07:00 committed by TensorFlower Gardener
parent bc5a87b03e
commit 0094a421fc

View File

@ -153,7 +153,7 @@ def _lift_unlifted_variables(graph, variable_holder):
ops.GraphKeys.LOCAL_VARIABLES)
existing_captures = object_identity.ObjectIdentitySet(
graph.internal_captures)
lifted_variables = {}
lifted_variables = object_identity.ObjectIdentityDictionary()
def _should_lift_variable(v):
return ((v._in_graph_mode # pylint: disable=protected-access