评价此页

torch.xpu.current_device#

torch.xpu.current_device()[source]#

返回当前选定设备的索引。

返回类型

int