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
Fairseq
Commits
dfd77717
"examples/vscode:/vscode.git/clone" did not exist on "ab6639bc47db814c0c1056245c2b3f2baafbdabc"
Commit
dfd77717
authored
Sep 02, 2018
by
alexeib
Committed by
Myle Ott
Sep 03, 2018
Browse files
fix cosine lr sched for t_mult=1 with warmup
parent
0a7f9e64
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fairseq/optim/lr_scheduler/cosine_lr_scheduler.py
fairseq/optim/lr_scheduler/cosine_lr_scheduler.py
+1
-1
No files found.
fairseq/optim/lr_scheduler/cosine_lr_scheduler.py
View file @
dfd77717
...
...
@@ -93,7 +93,7 @@ class CosineSchedule(FairseqLRScheduler):
else
:
i
=
math
.
floor
(
curr_updates
/
self
.
period
)
t_i
=
self
.
period
t_curr
=
num
_updates
-
(
self
.
period
*
i
)
t_curr
=
curr
_updates
-
(
self
.
period
*
i
)
lr_shrink
=
self
.
lr_shrink
**
i
min_lr
=
self
.
min_lr
*
lr_shrink
...
...
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