aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/lib/strings/str_util.h
Commit message (Collapse)AuthorAge
* Removed redundant std::string -> string conversions.Gravatar A. Unique TensorFlower2018-08-24
| | | | PiperOrigin-RevId: 210127626
* fix C++ header guards.Gravatar A. Unique TensorFlower2018-08-21
| | | | PiperOrigin-RevId: 209679086
* 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
* Merge changes from github.Gravatar Patrick Nguyen2017-12-28
| | | | PiperOrigin-RevId: 180301735
* 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
* Support multiple delimiters for splitting strings.Gravatar A. Unique TensorFlower2016-11-25
| | | | Change: 140215361
* GCS Resumable Upload: use int64 instead of int32 when parsing file offsets.Gravatar Alexey Surkov2016-10-14
| | | | Change: 136219797
* Clean up warnings and IWYU in tensorflow/core/lib.Gravatar Derek Murray2016-09-21
| | | | Change: 133826999
* 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
* Include what you use in str_util.h: <functional> for std::function<>.Gravatar Derek Murray2016-09-14
| | | | Change: 133142894
* Augment TensorFlow str_util::Join with three-argument variant that allowsGravatar A. Unique TensorFlower2016-09-12
| | | | | per element customization via a Formatter function. Change: 132926708
* 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
* 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
* Minor formatting fixes.Gravatar Vijay Vasudevan2016-02-02
| | | | Change: 113582098
* Global search & replace to move to the new location forGravatar Josh Levenberg2016-01-26
| | | | | tensorflow/core/ files and build targets. Change: 113073087
* 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
* Added 'logging' import to control_flow_ops which is used in the file but not ↵Gravatar A. Unique TensorFlower2016-01-05
| | | | | | imported. Change: 110842260
* 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: Doc and linter fixes, some additional tests andGravatar Vijay Vasudevan2015-11-16
| | | | | | | | | | | | | | error handling, updates to website. Changes: - Removes redundant reshape from image models by @mrry - Default TensorBoard to localhost by @danmane - Reformatting of tensorflow/core by @josh11b - Make tutorials backwards compatible to 0.5.0 by @girving - Improve print documentation (md files not updated). - Add proper scrolling to sitemap by @martinwicke Base CL: 107956254
* 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