# tensorplay.cuda.empty_cache

Source: https://www.tensorplay.cn/docs/generated/tensorplay.cuda.empty_cache.html

# tensorplay.cuda.empty_cache

tensorplay.cuda.empty_cache() &#x2192; [None](https://docs.python.org/3/library/constants.html#None)[[source]](../_modules/tensorplay/cuda/memory.html#empty_cache)

Release all unoccupied cached memory currently held by the caching
allocator so that those can be used in other GPU application and visible in
nvidia-smi.

Note

[empty_cache()](#tensorplay.cuda.empty_cache) doesn’t increase the amount of GPU
memory available for TensorPlay. However, it may help reduce fragmentation
of GPU memory in certain cases.
