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

Method empty_cache

accelerator/sdaa_accelerator.py:136–137  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

134
135 # Memory management
136 def empty_cache(self):
137 return torch.sdaa.empty_cache()
138
139 def memory_allocated(self, device_index=None):
140 return torch.sdaa.memory_allocated(device_index)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected