MCPcopy 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

backward_peakFunction · 0.45
quantizeMethod · 0.45
init_z3Function · 0.45
run_opt_passesFunction · 0.45
_opt_empty_cache_implFunction · 0.45
add_z3_gather_release_fwFunction · 0.45
add_z3_gather_release_bwFunction · 0.45
run_all_gatherFunction · 0.45
__init__Method · 0.45
generateMethod · 0.45

Calls

no outgoing calls