Skip to content

Commit

Permalink
fix flake8 B950
Browse files Browse the repository at this point in the history
  • Loading branch information
MengqingCao committed May 23, 2024
1 parent 653400f commit e739c3a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions wenet/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,8 @@ def is_torch_npu_available() -> bool:
import torch_npu # noqa
return True
except ImportError:
print(
"torch_npu is unavailable. Please \"pip install torch_npu\" if you are using Ascend NPU"
)
print("Module \"torch_npu\" not found. \"pip install torch_npu\" \
if you are using Ascend NPU")
return False


Expand Down

0 comments on commit e739c3a

Please sign in to comment.