diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-08-22 12:09:20 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-08-22 12:12:38 -0700 |
commit | 36e475ce4d0a3565a81329641e2a95152eb9ebc6 (patch) | |
tree | 37011a00288bc7a30d7ed0eadb6775e50318de61 /tensorflow/python/lib | |
parent | 8f2f9eb49813568b6a7b6a1fa7480e961f7b8c9a (diff) |
Replaced calls to tensorflow::StringPiece::ToString with string conversions.
That is, instances of sp.ToString() are replaced with 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: 209806694
Diffstat (limited to 'tensorflow/python/lib')
-rw-r--r-- | tensorflow/python/lib/io/file_io.i | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/lib/io/file_io.i b/tensorflow/python/lib/io/file_io.i index 891a7b0fd0..0aa08ea3d1 100644 --- a/tensorflow/python/lib/io/file_io.i +++ b/tensorflow/python/lib/io/file_io.i @@ -42,7 +42,7 @@ inline void FileExists(const string& filename, TF_Status* out_status) { inline void FileExists(const tensorflow::StringPiece& filename, TF_Status* out_status) { tensorflow::Status status = - tensorflow::Env::Default()->FileExists(filename.ToString()); + tensorflow::Env::Default()->FileExists(string(filename)); if (!status.ok()) { Set_TF_Status_from_Status(out_status, status); } |