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
202e0bbe
Unverified
Commit
202e0bbe
authored
Jul 31, 2018
by
Myle Ott
Committed by
GitHub
Jul 31, 2018
Browse files
Fix bug when training with FP32 and --update-freq (#236)
parent
9143dfab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
fairseq/trainer.py
fairseq/trainer.py
+0
-1
No files found.
fairseq/trainer.py
View file @
202e0bbe
...
...
@@ -198,7 +198,6 @@ class Trainer(object):
self
.
model
.
eval
()
else
:
self
.
model
.
train
()
self
.
optimizer
.
zero_grad
()
if
sample
is
not
None
:
with
torch
.
no_grad
()
if
eval
else
contextlib
.
ExitStack
():
...
...
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