Check if the graph is finalized. Raises: RuntimeError: If the graph finalized.
(self)
| 2993 | self._thread_local._variable_creator_stack = variable_creator_stack # pylint: disable=protected-access |
| 2994 | |
| 2995 | def _check_not_finalized(self): |
| 2996 | """Check if the graph is finalized. |
| 2997 | |
| 2998 | Raises: |
| 2999 | RuntimeError: If the graph finalized. |
| 3000 | """ |
| 3001 | if self._finalized: |
| 3002 | raise RuntimeError("Graph is finalized and cannot be modified.") |
| 3003 | |
| 3004 | def _add_op(self, op): |
| 3005 | """Adds 'op' to the graph. |
no outgoing calls
no test coverage detected