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

Method empty_cache

accelerator/mps_accelerator.py:116–117  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

114
115 # Memory management
116 def empty_cache(self):
117 return torch.mps.empty_cache()
118
119 def memory_allocated(self, device_index=None):
120 return torch.mps.current_allocated_memory()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected