評價此頁

torch.cpu.current_device#

torch.cpu.current_device()[原始碼]#

返回 CPU 的當前裝置。始終為 ‘cpu’。

注意:此函式僅用於方便裝置無關的程式碼

返回型別

str