评价此页

torch.cuda.memory.reset_accumulated_host_memory_stats#

torch.cuda.memory.reset_accumulated_host_memory_stats()[源代码]#

重置主机内存分配器跟踪的“累积”(历史)统计信息。

有关详细信息,请参阅 host_memory_stats()。累积统计信息对应于每个单独统计信息字典中的 “allocated”(已分配)和 “freed”(已释放)键。