torch.mps.empty_cache
- torch.mps.empty_cache()[source]
Releases all unoccupied cached memory currently held by the caching allocator so that those can be used in other GPU applications.
Releases all unoccupied cached memory currently held by the caching allocator so that those can be used in other GPU applications.