評價此頁

torch.cuda.get_device_properties#

torch.cuda.get_device_properties(device=None)[原始碼]#

獲取裝置的屬性。

引數

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

返回

裝置的屬性

返回型別

_CudaDeviceProperties