Helper to serialize a graph to string.
(graph)
| 49 | |
| 50 | |
| 51 | def _graph_string(graph): |
| 52 | """Helper to serialize a graph to string.""" |
| 53 | if graph: |
| 54 | return graph.as_graph_def(add_shapes=True).SerializeToString() |
| 55 | else: |
| 56 | return b'' |
| 57 | |
| 58 | |
| 59 | def _build_options(options): |
no test coverage detected