Commit 7817445b authored by Geoffrey Irving's avatar Geoffrey Irving Committed by TensorFlower Gardener
Browse files

Fix gather for nonempty indices, empty slices

tf.gather([0], [[]]) now works.  This required

1. Avoiding an empty GPU kernel launch.
2. Avoiding the use of -1 reshapes in the gradient.  This code was also
   simplified a bit using the fact that array_ops.shape does it's own
   checking for fully defined shapes.
Change: 130554783
parent 0fcaae1e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment