torch.xpu.is_initialized torch.xpu.is_initialized() Return whether PyTorch’s XPU state has been initialized. Назадtorch.xpu.is_current_stream_capturing