Skip to content

Glossary: Deep Learning Basics

Decorator

Also written: @torch.no_grad()

A line starting with `@` above a function that wraps it. `@torch.no_grad()` runs the whole function without recording gradients.

Where the book teaches it

Related terms

torch.no_grad