aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/lib/strings/str_util.cc
Commit message (Collapse)AuthorAge
* Removed redundant std::string -> string conversions.Gravatar A. Unique TensorFlower2018-08-24
| | | | PiperOrigin-RevId: 210127626
* Replaced calls to tensorflow::StringPiece::ToString with std::string ↵Gravatar A. Unique TensorFlower2018-05-02
| | | | | | | | | | 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
* Speed up safe_strtod and safe_strtof functions by using double-conversion ↵Gravatar akindyakov2018-04-20
| | | | | | | | library Closes #12102. PiperOrigin-RevId: 193696537
* Remove a few unused #includesGravatar A. Unique TensorFlower2018-03-19
| | | | PiperOrigin-RevId: 189593522
* Added StrContains, StartsWith, and EndsWith functions to str_util.h.Gravatar A. Unique TensorFlower2018-03-16
| | | | | | | | Marked contains, starts_with, ends_with, and consume StringPiece methods as deprecated. This will allow tensorflow::StringPiece to be more easily replaced with absl::string_view (once the deprecated methods are removed) as absl::string_view does not contain those methods. PiperOrigin-RevId: 189355316
* Fixed a bug in tensorflow::str_util::CUnescape. Added a str util test thatGravatar A. Unique TensorFlower2017-11-14
| | | | | | | | | failed without this change. The CUnescape did a const_cast to the result string's buffer, which made it write the same buffer without copying. PiperOrigin-RevId: 175714391
* Removed StringPiece::set and StringPiece::clear, as they have no ↵Gravatar A. Unique TensorFlower2017-11-10
| | | | | | | | | | | | | absl::string_view equivalents. This will allow for a more convenient transition to absl::string_view. Calls to set StringPiece::set and StringPiece::clear were replaced with the StringPiece constructor as follows: string_piece_foo.set(data, size) => string_piece_foo = StringPiece(data, size) string_piece_foo.clear() => string_piece_foo = StringPiece() PiperOrigin-RevId: 175326576
* Use size_t for string sizeGravatar Igor Ganichev2017-08-29
| | | | | | This fixes a broken build PiperOrigin-RevId: 166924279
* Add ArgDefCase conversion to tensorflow::str_utilGravatar Igor Ganichev2017-08-29
| | | | PiperOrigin-RevId: 166905993
* Make all the image decode ops handle all formatsGravatar Geoffrey Irving2017-05-12
| | | | | | | | | | | | | | | | | | | | Too many users try to decode pngs as jpegs. Now, if you pass a png to decode_jpeg, or a gif to decode_png, it silently does what the user was expecting. Unfortunately, tf.image.decode_image still exists as a separate thing in Python, since decode_gif returns 4-D shapes incompatible with the other ops. A future CL could clean that up, but it's hard to do in a backwards compatible way. As is, decode_png and decode_jpeg will bail if you try to decode an animated gif, and produce 3-D images for nonanimated gifs. Also fix some crash-on-error bugs and memory leak bugs in gif_io.cc. RELNOTES: Make decode_jpeg/decode_png/decode_gif handle all formats, since users frequently try to decode an image as the wrong type. Fixes #9786. PiperOrigin-RevId: 155888493
* Add str_util::StringReplace.Gravatar Justin Lebar2017-05-10
| | | | PiperOrigin-RevId: 155516212
* Add input initialization values to benchmarkGravatar Pete Warden2017-01-06
| | | | Change: 143800723
* GCS Resumable Upload: use int64 instead of int32 when parsing file offsets.Gravatar Alexey Surkov2016-10-14
| | | | Change: 136219797
* Add strings::HumanReadableNum to tensorflow/core/lib/strings/numbers.hGravatar A. Unique TensorFlower2016-09-18
| | | | | | | Move HumanReadableElapsedTime from tensorflow/core/lib/strings/str_util.h to tensorflow/core/lib/strings/numbers.h to match the other HumanReadable* routines. Change: 133533798
* Add a str_util::ConsumeSuffix() utility function.Gravatar A. Unique TensorFlower2016-09-17
| | | | Change: 133476675
* Eliminate compiler warnings for implicit int64->32 conversion. Most of theseGravatar David G. Andersen2016-09-10
| | | | | | weren't bugs, but in some cases, it generalizes the code a bit in ways that should be nice for future flexibility. Change: 132773101
* Add new str_util::HumanReadableElapsedTime that formats a 'double seconds' valueGravatar A. Unique TensorFlower2016-09-06
| | | | | | using appropriate units based on the magnitude of the time interval, and add tests for this. Change: 132365945
* Fix overflow detection in ConsumeLeadingDigits.Gravatar A. Unique TensorFlower2016-07-18
| | | | Change: 127749101
* Update copyright for 3p/tf/core.Gravatar A. Unique TensorFlower2016-06-02
| | | | Change: 123900938
* Remove NumericParse32 from str_util.h, replacing calls with safe_strto32 fromGravatar A. Unique TensorFlower2016-04-06
| | | | | | | | | | | numbers.h. This removes the duplicate code, but has a small behavior change - safe_strto32 strips leading and trailing whitespace, while NumericParse does not. But this seems okay. Also changed the flag parsing command_line_flags.cc to template on int32 instead of int. Change: 119170865
* Move #include <vector> out of port.h to users of std::vector<>.Gravatar Josh Levenberg2016-01-21
| | | | | After this we can replace port.h with types.h. Change: 112727463
* Remove word2vec's dependency on RE2. This is primarily to allow inputsGravatar A. Unique TensorFlower2016-01-19
| | | | | | over 2GiB in size. As part of this, add ConsumeNonWhitespace() to str_util. Change: 112436569
* TensorFlow: Improve performance of AlexnetGravatar Manjunath Kudlur2015-11-20
| | | | | | | | | | | | | | | | | | | | | | Changes: * error message that refers to removed `DefaultSession` method. * -Wnull-conversion warnings * the "_start_time" attr for recvs when the flag "--brain_enable_scheduling_for_recvs" is set. * typo in tutorial data download progress message. * a typo ("however their installing"=>"however installing"). * typo, rename "TensorFlow Mechanics" to "How To" to be consistent with the website. * a typo ("subtact"=>"subtract"). * protobuf examples in comments in tensorflow::Example.proto. * formula formatting in MNIST beginner tutorial * negative fraction-of-queue-full stats * protobuf inclusion path so that Android demo will build under Blaze. * small typo (moderatly > moderately) * Session.run() to check that tensor arguments come from the session's graph. * another six import * seq2seq typo in bazel command Base CL: 108349164
* TensorFlow: Initial commit of TensorFlow library.Gravatar Manjunath Kudlur2015-11-06
TensorFlow is an open source software library for numerical computation using data flow graphs. Base CL: 107276108