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

Function _should_lift_variable

tensorflow/python/eager/wrap_function.py:169–173  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

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):

Callers 1

_lift_unlifted_variablesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected