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
Torchaudio
Commits
752de3e4
Unverified
Commit
752de3e4
authored
May 26, 2022
by
nateanl
Committed by
GitHub
May 26, 2022
Browse files
change Adam to AdamW (#2412)
parent
39c2c0a7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
examples/hubert/lightning.py
examples/hubert/lightning.py
+1
-1
No files found.
examples/hubert/lightning.py
View file @
752de3e4
...
@@ -75,7 +75,7 @@ class HuBERTPreTrainModule(LightningModule):
...
@@ -75,7 +75,7 @@ class HuBERTPreTrainModule(LightningModule):
raise
ValueError
(
f
"Unsupported model name:
{
model_name
}
"
)
raise
ValueError
(
f
"Unsupported model name:
{
model_name
}
"
)
self
.
loss
=
hubert_loss
self
.
loss
=
hubert_loss
self
.
optimizer
=
torch
.
optim
.
Adam
(
self
.
optimizer
=
torch
.
optim
.
Adam
W
(
self
.
model
.
parameters
(),
lr
=
learning_rate
,
betas
=
betas
,
eps
=
eps
,
weight_decay
=
weight_decay
self
.
model
.
parameters
(),
lr
=
learning_rate
,
betas
=
betas
,
eps
=
eps
,
weight_decay
=
weight_decay
)
)
self
.
lr_scheduler
=
LinearDecayLRScheduler
(
self
.
optimizer
,
warmup_updates
,
max_updates
)
self
.
lr_scheduler
=
LinearDecayLRScheduler
(
self
.
optimizer
,
warmup_updates
,
max_updates
)
...
...
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