Shortcuts

torch.xpu.device_count

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

返回可用的XPU设备数量。

Return type

int

优云智算