快捷方式

torch.cuda.get_device_properties

torch.cuda.get_device_properties(device=None)[source][source]

獲取裝置的屬性。

引數

device (torch.deviceintstr, 可選的) – 要返回其屬性的裝置。如果 deviceNone(預設),則使用由 current_device() 給定的當前裝置。

返回值

裝置的屬性

返回型別

_CudaDeviceProperties

文件

訪問全面的 PyTorch 開發者文件

檢視文件

教程

獲取面向初學者和高階開發者的深度教程

檢視教程

資源

查詢開發資源並獲得問題解答

檢視資源