Skip to content
Errors
Commands
Flags
Config
Cheat sheets
Changes
Compat
Codes
Compare
Glossary
Search
Ctrl K
Browse
Error Messages
Commands
Flags & Options
Config Reference
Cheat Sheets
Version Changes
Compatibility
Codes & Tables
X vs Y
Glossary
All tools
Home
Tools
PyTorch
Data & ML
PyTorch
Deep learning framework.
Official documentation
Errors
1
torch.OutOfMemoryError: CUDA out of memory. Tried to allocate …
PyTorch raises CUDA out of memory when the GPU cannot fit the next allocation. Lower the batch size, use mixed precision, drop references, reduce fragmentation.
All PyTorch error messages
Esc