Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AIS-SNU/Smart-Infinity
/ empty_cache
Function
empty_cache
deepspeed/runtime/utils.py:770–772 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
768
769
770
def
empty_cache():
771
get_accelerator().empty_cache()
772
get_accelerator().reset_peak_memory_stats()
773
774
775
def
see_memory_usage(message, force=False):
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