# tensorplay.cuda.reset_max_memory_allocated

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

# tensorplay.cuda.reset_max_memory_allocated

tensorplay.cuda.reset_max_memory_allocated(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_allocated)

Reset the starting point in tracking maximum GPU memory occupied by tensors 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.
