評價此頁

torch.get_default_device#

torch.get_default_device()[原始碼]#

獲取預設將在 device 上分配的 torch.Tensor

返回型別

device