評價此頁

torch.mps.synchronize#

torch.mps.synchronize()[source]#

等待 MPS 裝置上的所有流中的所有核心完成。