aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/common_runtime/session_state.cc
diff options
context:
space:
mode:
authorGravatar Peter Hawkins <phawkins@google.com>2018-05-02 16:22:41 -0700
committerGravatar Yifei Feng <yifeif@google.com>2018-05-02 16:22:41 -0700
commit5e9e6967b47989aa9084fb328f5ef0c40fc146ef (patch)
treefab4ecb4e3fd627d724c717cde43cff7296878bc /tensorflow/core/common_runtime/session_state.cc
parent4704ae7af1918755d72f159f49d98d35da6eb6fa (diff)
Replaced calls to tensorflow::StringPiece::ToString with std::string conversions.
That is, instances of sp.ToString() are replaced with std::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: 195162126
Diffstat (limited to 'tensorflow/core/common_runtime/session_state.cc')
-rw-r--r--tensorflow/core/common_runtime/session_state.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/common_runtime/session_state.cc b/tensorflow/core/common_runtime/session_state.cc
index 6befa53dff..65ff356e73 100644
--- a/tensorflow/core/common_runtime/session_state.cc
+++ b/tensorflow/core/common_runtime/session_state.cc
@@ -70,7 +70,7 @@ Status TensorStore::SaveTensors(const std::vector<string>& output_names,
// Save only the tensors in output_names in the session.
for (const string& name : output_names) {
TensorId id(ParseTensorName(name));
- const string& op_name = id.first.ToString();
+ const string& op_name = std::string(id.first);
auto it = tensors_.find(op_name);
if (it != tensors_.end()) {
// Save the tensor to the session state.