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
219cbf6e
"docs/source/vscode:/vscode.git/clone" did not exist on "415d1095278d896135728a54b4307dde3bc83243"
Commit
219cbf6e
authored
May 09, 2019
by
Myle Ott
Browse files
Set initial learning rate in LR schedulers by calling step_update(0) at init
parent
2af922f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
fairseq/trainer.py
fairseq/trainer.py
+1
-0
No files found.
fairseq/trainer.py
View file @
219cbf6e
...
...
@@ -117,6 +117,7 @@ class Trainer(object):
# We should initialize the learning rate scheduler immediately after
# building the optimizer, so that the initial learning rate is set.
self
.
_lr_scheduler
=
lr_scheduler
.
build_lr_scheduler
(
self
.
args
,
self
.
optimizer
)
self
.
_lr_scheduler
.
step_update
(
0
)
def
save_checkpoint
(
self
,
filename
,
extra_state
):
"""Save all training state in a checkpoint file."""
...
...
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