This commit is contained in:
Rui Wang (王瑞) 2026-02-04 04:10:30 +08:00 committed by GitHub
commit 91f4868d50
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -130,6 +130,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