torch.xpu.is_initialized# torch.xpu.is_initialized()[source]# Return whether PyTorch’s XPU state has been initialized.