Rate this Page
★ ★ ★ ★ ★

torch.xpu.current_device#

torch.xpu.current_device()[source]#

Return the index of a currently selected device.

Return type:

int