Skip to content

Commit

Permalink
Revert "Update flag_models.py to fix is_torch_npu_available as a func…
Browse files Browse the repository at this point in the history
…tion call"
  • Loading branch information
MeTaNoV authored Feb 21, 2024
1 parent af538b6 commit 2eb4360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FlagEmbedding/flag_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(
self.device = torch.device("cuda")
elif torch.backends.mps.is_available():
self.device = torch.device("mps")
elif is_torch_npu_available():
elif is_torch_npu_available:
self.device = torch.device("npu")
else:
self.device = torch.device("cpu")
Expand Down

0 comments on commit 2eb4360

Please sign in to comment.