MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / clear_torch_cache

Function clear_torch_cache

test/general/lm_eval/utils.py:289–291  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

287
288
289def clear_torch_cache():
290 gc.collect()
291 torch.cuda.empty_cache()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected