Shortcuts

torch.mps.empty_cache

torch.mps.empty_cache()[source][source]

Releases all unoccupied cached memory currently held by the caching allocator so that those can be used in other GPU applications.

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources