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.
Glossary: Deep Learning Basics
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.