torch.cuda.get_device_properties#
- torch.cuda.get_device_properties(device=None)[原始碼]#
獲取裝置的屬性。
- 引數
device (torch.device 或 int 或 str, 可選) – 要返回其屬性的裝置。如果
device為None(預設),則使用當前裝置,由current_device()提供。- 返回
裝置的屬性
- 返回型別
_CudaDeviceProperties
獲取裝置的屬性。
device (torch.device 或 int 或 str, 可選) – 要返回其屬性的裝置。如果 device 為 None(預設),則使用當前裝置,由 current_device() 提供。
裝置的屬性
_CudaDeviceProperties