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/tools/graph_transforms | |
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/tools/graph_transforms')
-rw-r--r-- | tensorflow/tools/graph_transforms/fold_constants_lib.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/tools/graph_transforms/fold_constants_lib.cc b/tensorflow/tools/graph_transforms/fold_constants_lib.cc index f858411876..6df2718e61 100644 --- a/tensorflow/tools/graph_transforms/fold_constants_lib.cc +++ b/tensorflow/tools/graph_transforms/fold_constants_lib.cc @@ -121,7 +121,7 @@ Status RewriteInputsAsPlaceholders(const TransformFuncContext& context, GraphDef* graph_def) { std::unordered_set<string> input_names; for (const string& input_name : context.input_names) { - input_names.insert(ParseTensorName(input_name).first.ToString()); + input_names.emplace(ParseTensorName(input_name).first); } for (NodeDef& node : *graph_def->mutable_node()) { |