| Commit message (Collapse) | Author | Age |
|
|
|
| |
PiperOrigin-RevId: 210127626
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
library
Closes #12102.
PiperOrigin-RevId: 193696537
|
|
|
|
| |
PiperOrigin-RevId: 189593522
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
This fixes a broken build
PiperOrigin-RevId: 166924279
|
|
|
|
| |
PiperOrigin-RevId: 166905993
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
PiperOrigin-RevId: 155516212
|
|
|
|
| |
Change: 143800723
|
|
|
|
| |
Change: 136219797
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Change: 133476675
|
|
|
|
|
|
| |
weren't bugs, but in some cases, it generalizes the code a bit in ways
that should be nice for future flexibility.
Change: 132773101
|
|
|
|
|
|
| |
using appropriate units based on the magnitude of the time interval, and add
tests for this.
Change: 132365945
|
|
|
|
| |
Change: 127749101
|
|
|
|
| |
Change: 123900938
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
After this we can replace port.h with types.h.
Change: 112727463
|
|
|
|
|
|
| |
over 2GiB in size.
As part of this, add ConsumeNonWhitespace() to str_util.
Change: 112436569
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 is an open source software library for numerical computation
using data flow graphs.
Base CL: 107276108
|