torch.xpu.is_initialized

torch.xpu.is_initialized()[源代码]

返回 PyTorch 的 XPU 是否已经初始化。

本页目录