torch.accelerator.memory.empty_host_cache#
- torch.accelerator.memory.empty_host_cache()[source]#
Release all unoccupied cached host (pinned) memory currently held by the host caching allocator so that it can be used by other applications.
Note
This function is a no-op if the memory allocator for the current accelerator has not been initialized.