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)
| 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. |
no outgoing calls