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

Method empty_cache

accelerator/mlu_accelerator.py:106–107  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

104
105 # Memory management
106 def empty_cache(self):
107 return torch.mlu.empty_cache()
108
109 def memory_allocated(self, device_index=None):
110 return torch.mlu.memory_allocated(device_index)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected