liveBook · Manning

Tf.GradientTape

Also called gradient tape

tf.GradientTape is a TensorFlow context manager that records tensor operations so gradients can subsequently be computed automatically.

How 2 Manning books explain it

Deep Learning with R, Third Edition

tf.GradientTape is a TensorFlow context-based API object that records tensor operations for subsequent gradient computation.

How it is used
Uses TensorFlow automatic differentiation to obtain gradients for custom training and image gradient ascent.
How deep it goes
Explains recorded computation graphs, explicit watching, gradient retrieval, and nested tapes through worked examples.
Examples
Demonstrates gradients of a squared variable, a watched constant, model loss, and an image filter loss.
What you can do after
Apply it via TensorFlow to compute gradients for a training step or image gradient ascent.

Read how Deep Learning with R, Third Edition explains tf.GradientTape →

Deep Learning with Python, Third Edition

TensorFlow’s context object for recording tensor operations so gradients can later be computed from the recorded graph.

How it is used
Supplies gradients for TensorFlow training steps and gradient-ascent input updates.
How deep it goes
Demonstrates variable and constant inputs, nested tapes for second-order gradients, and application in training and ascent steps.
Examples
Uses a squared input, position-to-acceleration derivatives, an MNIST training step, and image updates that maximize filter activation.
What you can do after
Apply it via TensorFlow to compute gradients for variables or watched tensors and use them in custom updates.

Read how Deep Learning with Python, Third Edition explains tf.GradientTape →

What to know first

Related concepts

Questions about tf.GradientTape

What is tf.GradientTape?

tf.GradientTape is a TensorFlow context manager that records tensor operations so gradients can subsequently be computed automatically.

Which Manning books explain tf.GradientTape?

Deep Learning with R, Third Edition and Deep Learning with Python, Third Edition.

What should I know before learning tf.GradientTape?

Manning books that teach tf.GradientTape usually introduce objective function, gradient and optimization first.

What is tf.GradientTape also called?

Tf.GradientTape is also called gradient tape.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.