torch.xpu.device\_count ======================= .. currentmodule:: torch.xpu .. autofunction:: device_count