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

Method _unsafe_unfinalize

tensorflow/python/framework/ops.py:3095–3105  ·  view source on GitHub ↗

Opposite of `finalize`. Internal interface. NOTE: Unfinalizing a graph could have negative impact on performance, especially in a multi-threaded environment. Unfinalizing a graph when it is in use by a Session may lead to undefined behavior. Ensure that all sessions using a gr

(self)

Source from the content-addressed store, hash-verified

3093 self._finalized = True
3094
3095 def _unsafe_unfinalize(self):
3096 """Opposite of `finalize`.
3097
3098 Internal interface.
3099
3100 NOTE: Unfinalizing a graph could have negative impact on performance,
3101 especially in a multi-threaded environment. Unfinalizing a graph
3102 when it is in use by a Session may lead to undefined behavior. Ensure
3103 that all sessions using a graph are closed before calling this method.
3104 """
3105 self._finalized = False
3106
3107 def _get_control_flow_context(self):
3108 """Returns the current control flow context.

Callers 2

testFinalizedMethod · 0.95
_close_internalMethod · 0.80

Calls

no outgoing calls

Tested by 1

testFinalizedMethod · 0.76