Returns a version number that increases as ops are added to the graph. Note that this is unrelated to the `tf.Graph.graph_def_versions`. Returns: An integer version that increases as ops are added to the graph.
(self)
| 3035 | |
| 3036 | @property |
| 3037 | def version(self): |
| 3038 | """Returns a version number that increases as ops are added to the graph. |
| 3039 | |
| 3040 | Note that this is unrelated to the |
| 3041 | `tf.Graph.graph_def_versions`. |
| 3042 | |
| 3043 | Returns: |
| 3044 | An integer version that increases as ops are added to the graph. |
| 3045 | """ |
| 3046 | if self._finalized: |
| 3047 | return self._version |
| 3048 | |
| 3049 | with self._lock: |
| 3050 | return self._version |
| 3051 | |
| 3052 | @property |
| 3053 | def graph_def_versions(self): |
no outgoing calls