Rate this Page

torch.accelerator.memory.empty_cache#

torch.accelerator.memory.empty_cache()[source]#

Release all unoccupied cached memory currently held by the caching allocator so that those can be used in other application.

Note

This function is a no-op if the memory allocator for the current accelerator has not been initialized.

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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.