Replace set, dict with ObjectIdentityDict/Set to prepare for eq implementation
PiperOrigin-RevId: 261786323
This commit is contained in:
parent
bc5a87b03e
commit
0094a421fc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user