torch.cuda.get_device_properties#
- torch.cuda.get_device_properties(device=None)[source]#
获取设备的属性。
- 参数
device (torch.device or int or str, optional) – device for which to return the properties of the device. It uses the current device, given by
current_device()
, ifdevice
isNone
(default).- 返回
the properties of the device
- 返回类型
_CudaDeviceProperties