Skip to content

Commit

Permalink
Fix imports
Browse files Browse the repository at this point in the history
  • Loading branch information
mryab committed Jul 1, 2022
1 parent 8258b43 commit e4cf33f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bitsandbytes/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# LICENSE file in the root directory of this source tree.

from .nn import modules
from cextension import COMPILED_WITH_CUDA
from .cextension import COMPILED_WITH_CUDA

if COMPILED_WITH_CUDA:
from .optim import adam
Expand Down
2 changes: 1 addition & 1 deletion bitsandbytes/functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import torch
from torch import Tensor

from cextension import lib, COMPILED_WITH_CUDA
from .cextension import lib, COMPILED_WITH_CUDA

name2qmap = {}

Expand Down
3 changes: 2 additions & 1 deletion bitsandbytes/optim/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
from .lamb import LAMB, LAMB8bit, LAMB32bit
from .rmsprop import RMSprop, RMSprop8bit, RMSprop32bit
from .adagrad import Adagrad, Adagrad8bit, Adagrad32bit
from .optimizer import GlobalOptimManager

from .optimizer import GlobalOptimManager

0 comments on commit e4cf33f

Please sign in to comment.