diff options
Diffstat (limited to 'tensorflow/core/kernels/string_strip_op.cc')
-rw-r--r-- | tensorflow/core/kernels/string_strip_op.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/core/kernels/string_strip_op.cc b/tensorflow/core/kernels/string_strip_op.cc index ae700f4294..2aeafa28c4 100644 --- a/tensorflow/core/kernels/string_strip_op.cc +++ b/tensorflow/core/kernels/string_strip_op.cc @@ -43,7 +43,7 @@ class StringStripOp : public OpKernel { for (int64 i = 0; i < input.size(); ++i) { StringPiece entry(input(i)); str_util::RemoveWhitespaceContext(&entry); - output(i) = entry.ToString(); + output(i) = std::string(entry); } } }; |