mmengine.device.is_npu_available¶ mmengine.device.is_npu_available()[源代码]¶ Returns True if Ascend PyTorch and npu devices exist. 返回类型: bool