Add option to tf.GradientTape gradient to return zero tensor for unconnected tensors.
Added unconnected gradients argument to GradientTape.gradient linked to the same argument as the tf.gradients module. This allows the option to return a zero tensor instead of None when taking the gradient of unconnected tensors PiperOrigin-RevId: 218186755
Loading
Please sign in to comment