Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ empty_cache
Method
empty_cache
accelerator/abstract_accelerator.py:117–118 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
115
# Memory management
116
@abc.abstractmethod
117
def
empty_cache(self):
118
...
119
120
@abc.abstractmethod
121
def
memory_allocated(self, device_index=None):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected