diff options
author | 2018-05-02 16:22:41 -0700 | |
---|---|---|
committer | 2018-05-02 16:22:41 -0700 | |
commit | 5e9e6967b47989aa9084fb328f5ef0c40fc146ef (patch) | |
tree | fab4ecb4e3fd627d724c717cde43cff7296878bc /tensorflow/core/common_runtime/session_state.cc | |
parent | 4704ae7af1918755d72f159f49d98d35da6eb6fa (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.cc | 2 |
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. |