評價此頁

torch.mps.device_count#

torch.mps.device_count()[原始碼]#

返回可用的 MPS 裝置數量。

返回型別

int