From 36e475ce4d0a3565a81329641e2a95152eb9ebc6 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Wed, 22 Aug 2018 12:09:20 -0700 Subject: 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 --- tensorflow/examples/label_image/main.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tensorflow/examples') 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()() = data.ToString(); + output->scalar()() = string(data); return Status::OK(); } -- cgit v1.2.3