Skip to content

Commit e01ba79

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 08243c0 commit e01ba79

File tree

1 file changed

+2
-1
lines changed
  • src/lightning/pytorch/accelerators

1 file changed

+2
-1
lines changed

src/lightning/pytorch/accelerators/npu.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,9 @@ def auto_device_count() -> int:
8888
def is_available() -> bool:
8989
try:
9090
import torch_npu
91+
9192
return torch.npu.device_count() > 0
92-
except (ImportError):
93+
except ImportError:
9394
# NPU may raise these exceptions if it's not properly configured.
9495
return False
9596

0 commit comments

Comments
 (0)