diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2017-11-13 11:41:38 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-11-13 11:53:36 -0800 |
commit | 0a79d4ab6ab961d7f36cbb3a14cfaff2152e70fd (patch) | |
tree | 07a87e026711ea484e0fdf740a78960d541ddce7 /tensorflow/tools/graph_transforms | |
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/tools/graph_transforms')
-rw-r--r-- | tensorflow/tools/graph_transforms/fold_constants_lib.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/tools/graph_transforms/fold_constants_lib.cc b/tensorflow/tools/graph_transforms/fold_constants_lib.cc index f2934a79bd..250f54e20f 100644 --- a/tensorflow/tools/graph_transforms/fold_constants_lib.cc +++ b/tensorflow/tools/graph_transforms/fold_constants_lib.cc @@ -39,9 +39,9 @@ limitations under the License. namespace tensorflow { namespace graph_transforms { namespace { -using StringPieceSet = std::unordered_set<StringPiece, StringPiece::Hasher>; +using StringPieceSet = std::unordered_set<StringPiece, StringPieceHasher>; template <typename T> -using StringPieceMap = std::unordered_map<StringPiece, T, StringPiece::Hasher>; +using StringPieceMap = std::unordered_map<StringPiece, T, StringPieceHasher>; } // namespace Status ReplaceSendRecvs(const GraphDef& original_graph_def, |