評價此頁

torch.cuda.memory.reset_accumulated_host_memory_stats#

torch.cuda.memory.reset_accumulated_host_memory_stats()[原始碼]#

重置主機記憶體分配器跟蹤的“累積”(歷史)統計資訊。

有關詳細資訊,請參閱 host_memory_stats()。累積統計資訊對應於每個單獨統計資訊字典中的 “allocated”(已分配)和 “freed”(已釋放)鍵。