mirror of https://github.com/open-mmlab/mim.git
[Fix] get version of CANN on Ascend NPU changed (#234)
parent
b40fe72e2f
commit
b39fbd9730
|
@ -353,7 +353,7 @@ def get_npu_version() -> str:
|
|||
'installing OpenMMLab projects on Ascend NPU.'
|
||||
"Please run 'source set_env.sh' in the CANN installation path."
|
||||
))
|
||||
npu_version = torch_npu.get_cann_version(ascend_home_path).lower()
|
||||
npu_version = torch.version.cann
|
||||
return npu_version
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue