# tensorplay.cuda.reset_max_memory_cached

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

# tensorplay.cuda.reset_max_memory_cached

tensorplay.cuda.reset_max_memory_cached(device: [Any](https://docs.python.org/3/library/typing.html#typing.Any) | [None](https://docs.python.org/3/library/constants.html#None) = None) &#x2192; [None](https://docs.python.org/3/library/constants.html#None)[[source]](../_modules/tensorplay/cuda/memory.html#reset_max_memory_cached)

Reset the starting point in tracking maximum GPU memory managed by the caching allocator for a given device.

Warning

This function now calls [reset_peak_memory_stats()](tensorplay.cuda.reset_peak_memory_stats.html#tensorplay.cuda.reset_peak_memory_stats), which resets
/all/ peak memory stats.
