Relative Content

Tag Archive for pythontensorflowgradienttapeautodiff

Tensorflow: what does output_gradient do in GradientTape().gradient?

I was wondering what the output_gradients argument does in the gradient function of an GradientTape object in tensorflow. According to https://www.tensorflow.org/api_docs/python/tf/GradientTape#gradient, this variable should contain “a list of gradients, one for each differentiable element of target.”
Its default value is None.