torch.compiler.reset¶ torch.compiler.reset()[源][源]¶ 此函式清除所有編譯快取,並將系統恢復到初始狀態。建議呼叫此函式,尤其是在使用諸如 torch.compile(…) 等操作後,以確保在進行另一次不相關的編譯之前處於乾淨狀態。