Skip to content

Commit 4faa8e2

Browse files
test
1 parent be47d49 commit 4faa8e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bitsandbytes/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@
3939
from .backends.xpu import ops as xpu_ops
4040

4141

42-
if importlib.util.find_spec("habana_frameworks.torch"):
42+
if importlib.util.find_spec("habana_frameworks") and importlib.util.find_spec("habana_frameworks.torch"):
4343
# In case not automatically imported
44-
import habana_frameworks.torch # type: ignore # noqa: I001
44+
import habana_frameworks.torch # noqa: I001
4545

4646
if hasattr(torch, "hpu") and torch.hpu.is_available():
4747
from .backends.hpu import ops as hpu_ops

0 commit comments

Comments
 (0)