(v)
| 167 | lifted_variables = object_identity.ObjectIdentityDictionary() |
| 168 | |
| 169 | def _should_lift_variable(v): |
| 170 | return ((v._in_graph_mode # pylint: disable=protected-access |
| 171 | and v.graph.building_function) |
| 172 | and isinstance(v, resource_variable_ops.BaseResourceVariable) |
| 173 | and v.handle not in existing_captures) |
| 174 | |
| 175 | for old_variable in global_collection_variables: |
| 176 | if _should_lift_variable(old_variable): |
no outgoing calls
no test coverage detected