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

Method empty_cache

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected