Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ empty_cache
Method
empty_cache
accelerator/hpu_accelerator.py:120–121 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
118
119
# Memory management
120
def
empty_cache(self):
121
return
122
123
def
memory_allocated(self, device_index=None):
124
return
self.hpu.memory_allocated()
Callers
15
test_real_vocabulary_backward_peak_drops_by_the_float32_tensors
Function · 0.45
backward_peak
Function · 0.45
quantize
Method · 0.45
init_z3
Function · 0.45
run_opt_passes
Function · 0.45
_opt_empty_cache_impl
Function · 0.45
add_z3_gather_release_fw
Function · 0.45
add_z3_gather_release_bw
Function · 0.45
run_all_gather
Function · 0.45
__init__
Method · 0.45
retake_inference_cache
Method · 0.45
generate
Method · 0.45
Calls
no outgoing calls
Tested by
2
test_real_vocabulary_backward_peak_drops_by_the_float32_tensors
Function · 0.36
backward_peak
Function · 0.36