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

Method empty_cache

accelerator/cuda_accelerator.py:141–142  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

139
140 # Memory management
141 def empty_cache(self):
142 return torch.cuda.empty_cache()
143
144 def memory_allocated(self, device_index=None):
145 return torch.cuda.memory_allocated(device_index)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected