评价此页

torch.xpu.device_count#

torch.xpu.device_count()[源代码]#

返回可用 XPU 设备的数量。

返回类型

int