Skip to content

Commit

Permalink
[Fix] get version of CANN on Ascend NPU changed (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
6Vvv authored Nov 24, 2023
1 parent b40fe72 commit b39fbd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mim/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit b39fbd9

Please sign in to comment.