aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/framework
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-08-27 11:01:09 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-08-27 11:12:14 -0700
commit8b05705ce58d264d09330531eea0c0701cc07ae2 (patch)
treeb6ad2bacaa4b07938ade9d37b019e23e00eed569 /tensorflow/core/framework
parentbf0382b3d05c86485589c792ed914dfd043ff89b (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/core/framework')
-rw-r--r--tensorflow/core/framework/function_testlib.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/core/framework/function_testlib.cc b/tensorflow/core/framework/function_testlib.cc
index 41270b8e5e..6e38256ba8 100644
--- a/tensorflow/core/framework/function_testlib.cc
+++ b/tensorflow/core/framework/function_testlib.cc
@@ -49,8 +49,8 @@ NodeDef NDef(StringPiece name, StringPiece op, gtl::ArraySlice<string> inputs,
gtl::ArraySlice<std::pair<string, FDH::AttrValueWrapper>> attrs,
const string& device) {
NodeDef n;
- n.set_name(name.ToString());
- n.set_op(op.ToString());
+ n.set_name(string(name));
+ n.set_op(string(op));
for (const auto& in : inputs) n.add_input(in);
n.set_device(device);
for (auto na : attrs) n.mutable_attr()->insert({na.first, na.second.proto});