torch.xpu.get_device_properties
- torch.xpu.get_device_properties(device=None)[源代码]
-
获取设备的属性。
- 参数
-
device (torch.device 或 int 或 str) – 指定返回设备属性的设备。
- 返回值
-
设备属性
- 返回类型
-
XPU设备属性
获取设备的属性。
device (torch.device 或 int 或 str) – 指定返回设备属性的设备。
设备属性
XPU设备属性