Rate this Page

torch.mtia.memory.reset_peak_memory_stats#

torch.mtia.memory.reset_peak_memory_stats(device=None)[source]#

Reset the peak memory stats for a given device.

Parameters:

device (torch.device, str, or int, optional) – statistics for the current device, given by current_device(), if device is None (default).