Skip to content

Glossary: Deep Learning Basics

requires_grad

Also written: requires_grad=True

A tensor flag telling autograd to record operations on it so gradients can be computed. `nn.Linear` sets it on its weights automatically.

Where the book teaches it

Related terms

Autogradbackward