Skip to content

Commit 9ff90e1

Browse files
authored
Update modules.py
1 parent 0e8e535 commit 9ff90e1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

bitsandbytes/nn/modules.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,6 @@ def to(self: T, tensor: Tensor, non_blocking: bool = ...) -> T: ...
679679
def to(self, *args, **kwargs):
680680
device, dtype, non_blocking, convert_to_format = torch._C._nn._parse_to(*args, **kwargs)
681681

682-
683682
if device is not None and device.type != "meta" and self.data.device.type == "cpu":
684683
if device.type != "cpu" or self.data.dtype != torch.int8:
685684
return self._quantize(device)

0 commit comments

Comments
 (0)