aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/graph
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-08-27 11:01:09 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-27 11:12:14 -0700
commit8b05705ce58d264d09330531eea0c0701cc07ae2 (patch)
treeb6ad2bacaa4b07938ade9d37b019e23e00eed569 /tensorflow/core/graph
parentbf0382b3d05c86485589c792ed914dfd043ff89b (diff)
Replaced calls to tensorflow::StringPiece::ToString with std::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: 210394878
Diffstat (limited to 'tensorflow/core/graph')
-rw-r--r--tensorflow/core/graph/tensor_id.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/graph/tensor_id.cc b/tensorflow/core/graph/tensor_id.cc
index 80c76df255..5a5b85e727 100644
--- a/tensorflow/core/graph/tensor_id.cc
+++ b/tensorflow/core/graph/tensor_id.cc
@@ -25,7 +25,7 @@ namespace tensorflow {
TensorId::TensorId(const SafeTensorId& id) : TensorId(id.first, id.second) {}
SafeTensorId::SafeTensorId(const TensorId& id)
- : SafeTensorId(id.first.ToString(), id.second) {}
+ : SafeTensorId(string(id.first), id.second) {}
TensorId ParseTensorName(const string& name) {
return ParseTensorName(StringPiece(name.data(), name.size()));