MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / empty_cache

Function empty_cache

deepspeed/runtime/utils.py:886–888  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

884
885
886def empty_cache():
887 get_accelerator().empty_cache()
888 get_accelerator().reset_peak_memory_stats()
889
890
891def is_optimized_parameter(param):

Callers 1

__init__Method · 0.90

Calls 3

get_acceleratorFunction · 0.90
empty_cacheMethod · 0.45

Tested by

no test coverage detected