torch.accelerator.memory.empty_cache
- torch.accelerator.memory.empty_cache()
Release all unoccupied cached memory currently held by the caching allocator so that those can be used in other application.
Release all unoccupied cached memory currently held by the caching allocator so that those can be used in other application.