| 297 | |
| 298 | // Mapping from node name to the index within node_defs_. |
| 299 | struct NodeInfo { |
| 300 | explicit NodeInfo(int i) : gdef_index(i), node(nullptr) {} |
| 301 | // Containers require that we have a default constructor. |
| 302 | NodeInfo() : NodeInfo(-1) {} |
| 303 | int gdef_index; |
| 304 | Node* node; // nullptr until the NodeDef is converted to a Node. |
| 305 | }; |
| 306 | gtl::FlatMap<StringPiece, NodeInfo, StringPieceHasher> gdef_nodes_; |
| 307 | |
| 308 | // Storage for StringPiece keys in gdef_nodes_. Typically, the StringPiece key |