aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/examples
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-08-22 12:09:20 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-22 12:12:38 -0700
commit36e475ce4d0a3565a81329641e2a95152eb9ebc6 (patch)
tree37011a00288bc7a30d7ed0eadb6775e50318de61 /tensorflow/examples
parent8f2f9eb49813568b6a7b6a1fa7480e961f7b8c9a (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/examples')
-rw-r--r--tensorflow/examples/label_image/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/examples/label_image/main.cc b/tensorflow/examples/label_image/main.cc
index baa65d3243..ee2927d0a5 100644
--- a/tensorflow/examples/label_image/main.cc
+++ b/tensorflow/examples/label_image/main.cc
@@ -106,7 +106,7 @@ static Status ReadEntireFile(tensorflow::Env* env, const string& filename,
"' expected ", file_size, " got ",
data.size());
}
- output->scalar<string>()() = data.ToString();
+ output->scalar<string>()() = string(data);
return Status::OK();
}