Skip to content

Glossary: Deep Learning Basics

torch.compile

A PyTorch function that turns a model into optimized code the first time it runs, which can speed up large models. The compile step takes time and can make small models slower, so measure before relying on it.

Where the book teaches it

Related terms

Mixed precision