Determines if the graph is frozen. Determines if a graph has previously been frozen by checking for any operations of type Variable*. If variables are found, the graph is not frozen. Args: sess: TensorFlow Session. Returns: Bool.
(sess)
| 252 | |
| 253 | |
| 254 | def is_frozen_graph(sess): |
| 255 | """Determines if the graph is frozen. |
| 256 | |
| 257 | Determines if a graph has previously been frozen by checking for any |
| 258 | operations of type Variable*. If variables are found, the graph is not frozen. |
| 259 | |
| 260 | Args: |
| 261 | sess: TensorFlow Session. |
| 262 | |
| 263 | Returns: |
| 264 | Bool. |
| 265 | """ |
| 266 | for op in sess.graph.get_operations(): |
| 267 | if op.type.startswith("Variable") or op.type.endswith("VariableOp"): |
| 268 | return False |
| 269 | return True |
| 270 | |
| 271 | |
| 272 | def build_debug_info_func(original_graph): |
no test coverage detected