Skip to content

Commit c440c6f

Browse files
Lint fix
1 parent 601c8f9 commit c440c6f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

bitsandbytes/nn/modules.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,9 +515,8 @@ def _save_to_state_dict(self, destination, prefix, keep_vars):
515515
save weight and bias,
516516
then fill state_dict with components of quant_state
517517
"""
518-
if (
519-
getattr(self.weight, "quant_state", None) is not None
520-
and getattr(self.weight.quant_state, "packing_format_for_cpu", False)
518+
if getattr(self.weight, "quant_state", None) is not None and getattr(
519+
self.weight.quant_state, "packing_format_for_cpu", False
521520
):
522521
self.weight.data, self.weight.quant_state = _convert_weight_packed_for_cpu_inverse(
523522
self.weight.data, self.weight.quant_state

0 commit comments

Comments
 (0)