Skip to content
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bitsandbytes/nn/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,8 @@
requires_grad=self.requires_grad,
has_fp16_weights=self.has_fp16_weights,
)
new_param.CB = self.CB
new_param.SCB = self.SCB
new_param.CB = self.CB.to(device=device) if self.CB != None else self.CB

Check failure on line 693 in bitsandbytes/nn/modules.py

View workflow job for this annotation

GitHub Actions / Lint

Ruff (E711)

bitsandbytes/nn/modules.py:693:64: E711 Comparison to `None` should be `cond is not None`
new_param.SCB = self.SCB.to(device=device) if self.SCB != None else self.SCB

Check failure on line 694 in bitsandbytes/nn/modules.py

View workflow job for this annotation

GitHub Actions / Lint

Ruff (E711)

bitsandbytes/nn/modules.py:694:67: E711 Comparison to `None` should be `cond is not None`

return new_param

Expand Down
Loading