diff options
author | 2018-05-02 18:52:02 -0700 | |
---|---|---|
committer | 2018-05-02 18:55:37 -0700 | |
commit | 223be4abe74592a781735a6b66e12cb0146f0830 (patch) | |
tree | 40171aa19e37c27169ec94e745354e8020107842 /tensorflow/core/util/tensor_bundle/tensor_bundle_test.cc | |
parent | 2b1a03c2ad502329a1f2b1368a40913ef21e97a0 (diff) |
Replaced calls to tensorflow::StringPiece::ToString with std::string conversions.
That is, instances of sp.ToString() are replaced with std::string(sp).
This will allow tensorflow::StringPiece::ToString to be removed, which is necessary before it can be replaced with absl::string_view.
PiperOrigin-RevId: 195188185
Diffstat (limited to 'tensorflow/core/util/tensor_bundle/tensor_bundle_test.cc')
-rw-r--r-- | tensorflow/core/util/tensor_bundle/tensor_bundle_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/util/tensor_bundle/tensor_bundle_test.cc b/tensorflow/core/util/tensor_bundle/tensor_bundle_test.cc index 7f166f0ec0..92ce8ae00e 100644 --- a/tensorflow/core/util/tensor_bundle/tensor_bundle_test.cc +++ b/tensorflow/core/util/tensor_bundle/tensor_bundle_test.cc @@ -107,7 +107,7 @@ std::vector<string> AllTensorKeys(BundleReader* reader) { reader->Seek(kHeaderEntryKey); reader->Next(); for (; reader->Valid(); reader->Next()) { - ret.push_back(reader->key().ToString()); + ret.push_back(std::string(reader->key())); } return ret; } |