Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ empty_cache
Function
empty_cache
deepspeed/runtime/utils.py:885–887 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
883
884
885
def
empty_cache():
886
get_accelerator().empty_cache()
887
get_accelerator().reset_peak_memory_stats()
888
889
890
def
is_optimized_parameter(param):
Callers
1
__init__
Method · 0.90
Calls
3
get_accelerator
Function · 0.90
empty_cache
Method · 0.45
reset_peak_memory_stats
Method · 0.45
Tested by
no test coverage detected