diff options
author | Peter Hawkins <phawkins@google.com> | 2018-05-02 16:22:41 -0700 |
---|---|---|
committer | Yifei Feng <yifeif@google.com> | 2018-05-02 16:22:41 -0700 |
commit | 5e9e6967b47989aa9084fb328f5ef0c40fc146ef (patch) | |
tree | fab4ecb4e3fd627d724c717cde43cff7296878bc /tensorflow/c/c_api.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/c/c_api.cc')
-rw-r--r-- | tensorflow/c/c_api.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/c/c_api.cc b/tensorflow/c/c_api.cc index 18eeb28168..b86b277ac3 100644 --- a/tensorflow/c/c_api.cc +++ b/tensorflow/c/c_api.cc @@ -2097,7 +2097,7 @@ static void GraphImportGraphDefLocked(TF_Graph* graph, const GraphDef& def, for (int i = 0; i < size; ++i) { TensorId id = results.missing_unused_input_map_keys[i]; - tf_results->missing_unused_key_names_data.push_back(id.first.ToString()); + tf_results->missing_unused_key_names_data.push_back(std::string(id.first)); tf_results->missing_unused_key_names[i] = tf_results->missing_unused_key_names_data.back().c_str(); tf_results->missing_unused_key_indexes[i] = id.second; |