diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2018-09-04 11:07:59 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-09-04 11:12:14 -0700 |
commit | 0e9af928f7a6711971ade159a511da093f307a81 (patch) | |
tree | ed622b49962b67f0e9b5d9f272132f0f4657476a /tensorflow/core/common_runtime/session_state.cc | |
parent | bc7c47ccddbf351d17b0d2d61cde3d48e2d530d6 (diff) |
Removed redundant std::string -> string conversions.
PiperOrigin-RevId: 211487989
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 65ff356e73..5b1915755d 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 = std::string(id.first); + const string op_name(id.first); auto it = tensors_.find(op_name); if (it != tensors_.end()) { // Save the tensor to the session state. |