| 35 | namespace tensorflow { |
| 36 | |
| 37 | string SummarizeGraphDef(const GraphDef& graph_def) { |
| 38 | string ret; |
| 39 | strings::StrAppend( |
| 40 | &ret, "versions = ", ProtoShortDebugString(graph_def.versions()), ";\n"); |
| 41 | for (const NodeDef& node : graph_def.node()) { |
| 42 | strings::StrAppend(&ret, SummarizeNodeDef(node), ";\n"); |
| 43 | } |
| 44 | return ret; |
| 45 | } |
| 46 | |
| 47 | Status ValidateExternalGraphDefSyntax(const GraphDef& graph_def) { |
| 48 | for (const NodeDef& node : graph_def.node()) { |