Finalizes this graph, making it read-only. After calling `g.finalize()`, no new operations can be added to `g`. This method is used to ensure that no operations are added to a graph when it is shared between multiple threads, for example when using a `tf.compat.v1.train.QueueRunner
(self)
| 3083 | return self._finalized |
| 3084 | |
| 3085 | def finalize(self): |
| 3086 | """Finalizes this graph, making it read-only. |
| 3087 | |
| 3088 | After calling `g.finalize()`, no new operations can be added to |
| 3089 | `g`. This method is used to ensure that no operations are added |
| 3090 | to a graph when it is shared between multiple threads, for example |
| 3091 | when using a `tf.compat.v1.train.QueueRunner`. |
| 3092 | """ |
| 3093 | self._finalized = True |
| 3094 | |
| 3095 | def _unsafe_unfinalize(self): |
| 3096 | """Opposite of `finalize`. |
no outgoing calls