torch.xpu.is_available torch.xpu.is_available() Return a bool indicating if XPU is currently available. Return type: bool