aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-10-04 06:09:42 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-10-04 06:14:08 -0700
commit82ea80b979768c7fe1daa4b50cf054e5a0968f31 (patch)
tree11d36ac98c1f6b3e4d3e8335188d33cf4a32161d /tensorflow/core
parent2c9369c8d878c913b5dfcd3c27849bcd3d6af6c9 (diff)
Add option in tf.gradients() to return zero tensors for unconnected gradients.
tf.gradients currently returns [NONE] when the gradient of unconnected variables is required. This backwards compatable change adds in the option to have zero tensors returned that match the dimensions of the input tensor. PiperOrigin-RevId: 215725488
Diffstat (limited to 'tensorflow/core')
0 files changed, 0 insertions, 0 deletions