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