Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
bitsandbytes
Commits
4a05df34
Commit
4a05df34
authored
Oct 27, 2022
by
Tom Aarsen
Browse files
Fix critical bug in PytorchLARS().step: Undefined variable
parent
f6978ae2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
bitsandbytes/optim/lars.py
bitsandbytes/optim/lars.py
+1
-1
No files found.
bitsandbytes/optim/lars.py
View file @
4a05df34
...
...
@@ -181,7 +181,7 @@ class PytorchLARS(Optimizer):
state
=
self
.
state
[
p
]
d_p
=
p
.
grad
if
weight_decay
!=
0
:
d_p
=
d_p
.
add
(
p
aram
,
alpha
=
weight_decay
)
d_p
=
d_p
.
add
(
p
,
alpha
=
weight_decay
)
if
momentum
!=
0
:
buf
=
state
.
get
(
"momentum_buffer"
,
None
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment