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
978ba2db
"docs/git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "9fc0dcaaa7644f07db69187fc6c0ae23cfdc582f"
Commit
978ba2db
authored
Mar 22, 2023
by
Phil Wang
Browse files
another tab/spaces fix
parent
916000c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
csrc/kernels.cu
csrc/kernels.cu
+4
-4
No files found.
csrc/kernels.cu
View file @
978ba2db
...
@@ -1682,10 +1682,10 @@ kOptimizerStatic8bit1StateBlockwise(T* p, T* __restrict__ const g, unsigned char
...
@@ -1682,10 +1682,10 @@ kOptimizerStatic8bit1StateBlockwise(T* p, T* __restrict__ const g, unsigned char
{
{
g_val
=
float
(
g_vals
[
j
]);
g_val
=
float
(
g_vals
[
j
]);
g_val
*=
gnorm_scale
;
g_val
*=
gnorm_scale
;
if
(
!
skip_zeros
||
(
skip_zeros
&&
((
float
)
g_vals
[
j
]
!=
0.0
f
)))
if
(
!
skip_zeros
||
(
skip_zeros
&&
((
float
)
g_vals
[
j
]
!=
0.0
f
)))
{
{
if
(
weight_decay
>
0.0
f
)
{
if
(
weight_decay
>
0.0
f
)
{
switch
(
OPTIMIZER
)
{
switch
(
OPTIMIZER
)
{
case
MOMENTUM
:
case
MOMENTUM
:
case
ADAGRAD
:
case
ADAGRAD
:
case
RMSPROP
:
case
RMSPROP
:
...
...
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