# tensorplay.cuda.reset_peak_memory_stats Source: https://www.tensorplay.cn/docs/generated/tensorplay.cuda.reset_peak_memory_stats.html ```python tensorplay.cuda.reset_peak_memory_stats(device: Any = None) → None ``` Reset the “peak” stats tracked by the CUDA memory allocator. Peak stats correspond to the “peak” key in each individual stat dict. Parameters: device ([tensorplay.Device](/docs/generated/tensorplay.Device.html#tensorplay.Device) or [int](https://docs.python.org/3/builtins/functions.html#int), optional) – selected device. Returns statistic for the current device, given by [current_device()](/docs/generated/tensorplay.cuda.current_device.html#tensorplay.cuda.current_device), if [device](/docs/generated/tensorplay.cuda.device.html#tensorplay.cuda.device) is None (default).