评价此页

torch.xpu.get_device_properties#

torch.xpu.get_device_properties(device=None)[source]#

获取设备的属性。

参数

device (torch.device or int or str) – device for which to return the properties of the device.

返回

the properties of the device

返回类型

_XpuDeviceProperties