(graph_def, filename)
| 68 | |
| 69 | |
| 70 | def _write_graph_def(graph_def, filename): |
| 71 | if not filename: |
| 72 | raise ValueError("Output graph file not specified") |
| 73 | |
| 74 | with gfile.Open(filename, "wb") as f: |
| 75 | f.write(graph_def.SerializeToString()) |
| 76 | |
| 77 | |
| 78 | def _collapse_subgraph(graph_def, inputs, outputs, op_definition): |
no test coverage detected