Skip to content

Commit bde878a

Browse files
committed
fix import
1 parent 23281c8 commit bde878a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitsandbytes/nn/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
)
1818

1919
# CPU and XPU backend do not need triton, and XPU so not support triton for now.
20-
if "xpu" not in backends.keys() or ("cpu" in backends.keys() and len(backends.keys()) == 1):
20+
if "xpu" not in backends.keys() and len(backends.keys()) > 1:
2121
from .triton_based_modules import (
2222
StandardLinear,
2323
SwitchBackLinear,

0 commit comments

Comments
 (0)