diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-08-27 11:01:09 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-08-27 11:12:14 -0700 |
commit | 8b05705ce58d264d09330531eea0c0701cc07ae2 (patch) | |
tree | b6ad2bacaa4b07938ade9d37b019e23e00eed569 /tensorflow/core/graph | |
parent | bf0382b3d05c86485589c792ed914dfd043ff89b (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.cc | 2 |
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())); |