MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / empty_cache

Method empty_cache

accelerator/xpu_accelerator.py:273–274  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

271
272 # Memory management
273 def empty_cache(self):
274 return torch.xpu.empty_cache()
275
276 def memory_allocated(self, device_index=None):
277 return torch.xpu.memory_allocated(device_index)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected