评价此页

torch.mps.empty_cache#

torch.mps.empty_cache()[source]#

释放缓存分配器当前持有的所有未占用内存,以便其他GPU应用程序使用。