torch.cuda.reset_peak_host_memory_stats¶ torch.cuda.reset_peak_host_memory_stats()[source][source]¶ 重置由主机内存分配器跟踪的“峰值”统计信息。 详细信息请见 host_memory_stats() 。峰值统计信息对应于每个单独的统计字典中的“峰值”键。