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

Method _check_not_finalized

tensorflow/python/framework/ops.py:2995–3002  ·  view source on GitHub ↗

Check if the graph is finalized. Raises: RuntimeError: If the graph finalized.

(self)

Source from the content-addressed store, hash-verified

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.

Callers 6

_add_opMethod · 0.95
_create_op_internalMethod · 0.95
_next_idMethod · 0.95
add_to_collectionMethod · 0.95
clear_collectionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected