torch.cpu.current_device¶ torch.cpu.current_device()[原始碼][原始碼]¶ 返回 CPU 的當前裝置。始終為 ‘cpu’。 注意:此函式僅用於促進裝置無關程式碼的編寫 返回型別 str