delu.cuda.free_memory#
- delu.cuda.free_memory()[source]#
Free GPU memory:
torch.cuda.synchronize+gc.collect+torch.cuda.empty_cache.Warning
There is a small chunk of GPU-memory (occupied by drivers) that is impossible to free. It is a
torch“limitation”, so the function inherits this property.Example
delu.cuda.free_memory()
- Return type:
None