TensorFlow · Class
GradientTape
tf.GradientTape records TensorFlow operations and computes gradients automatically. It tracks trainable variables by default, while other tensors need watch().
Last updated
Syntax
tf.GradientTape(persistent=False, watch_accessed_variables=True)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
tf.autodiff.GradientTapetf.UnconnectedGradientsGradientTape.gradientGradientTape.jacobianGradientTape.batch_jacobianGradientTape.watchGradientTape.resetGradientTape.stop_recording