Replaced calls to tensorflow::StringPiece::ToString with std::string conversions.
authorA. Unique TensorFlower <gardener@tensorflow.org>
Wed, 2 May 2018 18:45:15 +0000 (11:45 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Wed, 2 May 2018 18:48:03 +0000 (11:48 -0700)
commit1ea4a77c6ccd2c783aedb2ccaf76f46b018c12c5
tree933fc3ff71c8393b5254c33f6efedb28d2ccc67d
parent9b6cba1d739e36ec2da59a593afb09bf17307650
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: 195126422
19 files changed:
tensorflow/core/kernels/gpu_utils.h
tensorflow/core/kernels/merge_v2_checkpoints_op_test.cc
tensorflow/core/kernels/remote_fused_graph_execute_utils.cc
tensorflow/core/kernels/save_restore_v2_ops.cc
tensorflow/core/kernels/string_strip_op.cc
tensorflow/core/kernels/tensor_array_ops.cc
tensorflow/core/kernels/whole_file_read_ops.cc
tensorflow/core/lib/strings/numbers.h
tensorflow/core/lib/strings/scanner_test.cc
tensorflow/core/lib/strings/str_util.cc
tensorflow/core/lib/strings/str_util.h
tensorflow/core/platform/env.cc
tensorflow/core/platform/env_test.cc
tensorflow/core/platform/file_system.cc
tensorflow/core/platform/file_system_helper.cc
tensorflow/core/platform/file_system_test.cc
tensorflow/core/util/command_line_flags.cc
tensorflow/core/util/env_var.cc
tensorflow/core/util/example_proto_fast_parsing.cc