Change 110055925
Clean up interface for adjust_contrast and adjust_brightness.
- Simplify kernel for adjust_contrast and remove all min/max and casts.
- Change semantics of delta arg to adjust_brightness (always in [0,1)), and adjust users.
- Add saturate_cast for casting images without over/underflow problems.
- Add new numbers for adjust_contrast benchmark.
This CL makes two changes to the public API:
- It changes the semantics of the delta parameter of adjust_brightness, which was in the same range as the input image before, and now is always in [0,1).
- It changes the semantics of adjust_contrast (the cc op), which wasn't hidden, but was shadowed by the python wrapper in image_ops. It's a little questionable whether this function was part of the public API. It definitely shouldn't have been. It is now hidden, although now it could be part of the public API, albeit with a different name.
Change 110054427
update ci_build
* add PYTHON_BIN_PATH and always run ./configure in ci_build
* rename ci_build cache directory to bazel-ci_build-cache
* sync ci_build/Dockerfile.cpu with docker/Dockerfile.devel
* use "FROM nvidia/cuda:..." for gpu container
* therefore no need of the tensorflow_extra_deps directory anymore
* share install code between containers using ./install/*.sh scripts
* do not inherit (and override FROM clausule in dockerfiles anymore)
* print bazel test errors to stderr
Change 110047126
Update ops.pbtxt.
Change 110046428
Simplify the example for the Fill op.
Base CL: 110056265
Change 110010103
Implementing SparseSplitOp.
The op takes a sparse tensor (list, values and shape), split_dim and num_splits and produces a list of num_splits tensors where the shape of each tensor is the shape of the original tensor except split_dim = shape[split_dim +num_split - 1 / num_split]. in case if shape[split_dim] is not an integer multiple of num_split an extra one dimension get added to the slices starting from 0.
For example if the input shape is a [2, 10] split_dim = 1, num_split = 3
output shapes will be [[2, 4], [2, 4], [2, 2]].
The Op register shape to [Unknown, dim] for indices tensors and [Unknown] for the values tensor because shape can't be inferred without evaluate input tensors.
Base CL: 110012853
Change 110004767
Add Cast to list of supported ConstantValue ops, mainly useful for shape inference
Change 110002200
Bug fix for b/24814668. The fix uses mdevin's CL/109324239, which adds support to clear control dependency and control flow contexts.
Bug fix for b/25914830. We now clear the control related contexts for initial values of variables in adagrad.
Change 110000213
Further (minor) improvements to print usage in docs and tutorials
Change 109975099
Update `tensor_util.ConstantValue()` to return scalars when appropriate.
The `ConstantValue()` implementations for `tf.size()` and `tf.rank()`
were returning single-element numpy vectors, whereas the op
implementations produce scalar outputs.
Change 109950165
TensorBoard tag to 5
Base CL: 110006867
Change 109945903
Make unsorted_segment_sum detect negative indices
Previously it crashed. This fixes#466.
Also improve the error message to say which index is problematic.
Change 109942557
Fix the conv_grad_input with stride 2.
+ We always call the Cudnn implementation even if we have an incompatible
padding.
Base CL: 109948577
Change 109922312
Update dockerfiles and instructions.
This CL does two things:
* updates dockerfiles to use 0.6.0
* updates the instructions for the new tag format.
Change 109920508
Fix broken cast_op_test
Change 109919316
Enforce converting to int64 for SparseTensor indices and shape
Change 109916130
Fix imagenet for Python 3
It needed some binary file modes and an iteritems -> items.
Change 109912827
Enable fast c++ implementation in protobuf's python interface.
Base CL: 109922840
Change 109849574
Avoid some missing return warnings
Change 109837783
Add invalid aggregation to error message.
Change 109835474
Improves docstring of RegisterGradient decorator.
Fixes a typo (input -> output) and uses lowercase name for neg in the provided example.
Change 109834486
Update generated Op docs.
Change 109830497
Fix per_image_whitening to handle edge case by preventing the sqrt() of a negative number which is possible due to numerical floating point issues. Unit test added.
Fixes#411
Change 109824286
Change TensorBoard/TAG to 4
Change 109824197
Update tutorials and documentation usage of print to use print as function not statement.
This way you can copy+paste code in a python3 context and it will still work.
Change 109824020
Fix another case where TensorBoard discards values after a restart.
We also need to not discard on graph_def, since user code or SummaryWriter may add graph_defs at step 0 after every restart.
Change 109821924
Defines Templates for variable sharing.
A Template is a function that generates a sub-graph with the same variables each time it is called.
Two different templates defined with the same underlying function also return different variables.
Change 109815801
Don't instatiate the eigen expressions for additions and subtractions of
boolean since they won't be called. This reduces the size of the binary a bit.
Change 109795730
Allow casts to and from int8
Change 109791914
Python 3 fix: filter has no len
gradients.py calls len on the output of filter. A call to tuple is needed in
between.
Not sure why this wasn't caught when we ran the Python 3 tests. If I break it
for Python 2 several tests break.
Change 109757009
Fix minor grammatical errors in about.html
The missing article needs no justification, I think.
has -> have, because subjects are 'usability and functionality', not 'TensorFlow'.
and also -> and, because 'also' is superfluous in this use.
Change 109756627
TensorFlow: some doc updates to models/ files
Change 109743899
TensorFlow: remove one more clang warning (class / struct inconsistency).
Change 109741933
Document default for max_images in tf.image_summary
It used to say max_images=None which hid the C++ defalut of 3.
Now it says max_images=3.
Fixes https://github.com/tensorflow/tensorflow/issues/441.
It's unfortunate that an edit-distance-5 change produces such a large CL.
Change 109741569
Update generated Op docs.
Change 109739599
Renaming the Python variables in the layer weights of the fully connected
MNIST model so that the variable and the TensorFlow names are different. This
allows the documentation to be more explicit about the distinction between the
weights and biases of different layers. Also, the documentation gets to
describe the whether the TF name or the Python name is being used.
Base CL: 109851372
Change 109738410
Don't crash if an attribute contains an invalid shape
Using GetAttr to retrieve a TensorShape caused a process crash if the shape
contained negative entries or was too large. Instead, produce useful error
messages (and Python exceptions).
Fixes https://github.com/tensorflow/tensorflow/issues/449.
Change 109737915
TensorFlow: fix build failures and some warnings when built with clang
on OS X.
Change 109737559
Fix bad paragraphing
Change 109735757
Fix OSX installation instructions.
Change 109733797
Adds buttons to toggle the display of all runs.
Base CL: 109739474