This commit is contained in:
Rui Wang (王瑞)
2026-07-20 13:41:51 +08:00
committed by GitHub
+1
View File
@@ -137,6 +137,7 @@ except:
try:
import torch_npu # noqa: F401
_ = torch.npu.device_count()
torch_npu.npu.set_compile_mode(jit_compile = False)
npu_available = torch.npu.is_available()
except:
npu_available = False