| 2230 | } |
| 2231 | |
| 2232 | string NewName(const Node* n, bool pretty) { |
| 2233 | if (pretty) { |
| 2234 | return strings::StrCat(n->type_string(), n->id()); |
| 2235 | } else { |
| 2236 | return strings::StrCat("n", n->id()); |
| 2237 | } |
| 2238 | } |
| 2239 | |
| 2240 | // TODO(zhifengc): Maybe this should be the default Graph::AsGraphDef. |
| 2241 | // and stash the original NodeDef name as an attr for documentation |
no test coverage detected