Skip to content

Glossary: Deep Learning Basics

detach

Also written: .detach()

Returns a tensor with the same numbers but cut off from autograd's record. Useful when storing predictions for later.

Where the book teaches it

Related terms

Autogradtorch.no_grad