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

testMethod · 0.45
cprofilemeFunction · 0.45
timemeFunction · 0.45
line_profilemeFunction · 0.45
cprofilemeFunction · 0.45
timemeFunction · 0.45
line_profilemeFunction · 0.45
quantizeMethod · 0.45
init_z3Function · 0.45

Calls

no outgoing calls

Tested by 1

testMethod · 0.36