diff options
author | 2017-11-13 11:41:38 -0800 | |
---|---|---|
committer | 2017-11-13 11:53:36 -0800 | |
commit | 0a79d4ab6ab961d7f36cbb3a14cfaff2152e70fd (patch) | |
tree | 07a87e026711ea484e0fdf740a78960d541ddce7 /tensorflow/core/graph/graph_constructor.cc | |
parent | 73bc96ffc009283058c9d55b494745631a931814 (diff) |
Moved tensorflow::StringPiece::Hasher out of tensorflow::StringPiece and renamed it tensorflow::StringPieceHasher. This allows tensorflow::StringPiece to be more easily replaced with absl::string_view (which does not contain a Hasher struct).
PiperOrigin-RevId: 175563786
Diffstat (limited to 'tensorflow/core/graph/graph_constructor.cc')
-rw-r--r-- | tensorflow/core/graph/graph_constructor.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/core/graph/graph_constructor.cc b/tensorflow/core/graph/graph_constructor.cc index 2ee409768b..ebaffeb50e 100644 --- a/tensorflow/core/graph/graph_constructor.cc +++ b/tensorflow/core/graph/graph_constructor.cc @@ -241,13 +241,13 @@ class GraphConstructor { }; // TODO(vrv): Profile this data structure to see if we should use an // alternative implementation of std::unordered_map. - std::unordered_map<StringPiece, NodeInfo, StringPiece::Hasher> gdef_nodes_; + std::unordered_map<StringPiece, NodeInfo, StringPieceHasher> gdef_nodes_; // Mapping from node name to the existing node in g_. - std::unordered_map<StringPiece, Node*, StringPiece::Hasher> existing_nodes_; + std::unordered_map<StringPiece, Node*, StringPieceHasher> existing_nodes_; // Prefixes already used in the graph. - std::unordered_set<StringPiece, StringPiece::Hasher> existing_prefixes_; + std::unordered_set<StringPiece, StringPieceHasher> existing_prefixes_; // Imported node names that have been uniquified. The key is the original // name, the value is the new unique name. |