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
c5582724
Commit
c5582724
authored
Mar 09, 2023
by
Phil Wang
Browse files
missed adagrad
parent
af034309
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
csrc/kernels.cu
csrc/kernels.cu
+1
-0
No files found.
csrc/kernels.cu
View file @
c5582724
...
@@ -1691,6 +1691,7 @@ kOptimizerStatic8bit1StateBlockwise(T* p, T* __restrict__ const g, unsigned char
...
@@ -1691,6 +1691,7 @@ kOptimizerStatic8bit1StateBlockwise(T* p, T* __restrict__ const g, unsigned char
if
(
weight_decay
>
0.0
f
)
{
if
(
weight_decay
>
0.0
f
)
{
switch
(
OPTIMIZER
)
{
switch
(
OPTIMIZER
)
{
case
MOMENTUM
:
case
MOMENTUM
:
case
ADAGRAD
:
case
RMSPROP
:
case
RMSPROP
:
g_val
+=
((
float
)
p_vals
[
j
])
*
weight_decay
;
g_val
+=
((
float
)
p_vals
[
j
])
*
weight_decay
;
break
;
break
;
...
...
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