We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be47d49 commit 4faa8e2Copy full SHA for 4faa8e2
bitsandbytes/__init__.py
@@ -39,9 +39,9 @@
39
from .backends.xpu import ops as xpu_ops
40
41
42
-if importlib.util.find_spec("habana_frameworks.torch"):
+if importlib.util.find_spec("habana_frameworks") and importlib.util.find_spec("habana_frameworks.torch"):
43
# In case not automatically imported
44
- import habana_frameworks.torch # type: ignore # noqa: I001
+ import habana_frameworks.torch # noqa: I001
45
46
if hasattr(torch, "hpu") and torch.hpu.is_available():
47
from .backends.hpu import ops as hpu_ops
0 commit comments