MCPcopy 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
770def empty_cache():
771 get_accelerator().empty_cache()
772 get_accelerator().reset_peak_memory_stats()
773
774
775def see_memory_usage(message, force=False):

Callers 1

__init__Method · 0.90

Calls 3

get_acceleratorFunction · 0.90
empty_cacheMethod · 0.45

Tested by

no test coverage detected