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
3feaccf3
Unverified
Commit
3feaccf3
authored
Jun 21, 2018
by
Alexei Baevski
Committed by
GitHub
Jun 21, 2018
Browse files
Merge pull request #193 from hmc-cs-mdrissi/minor_fixes
default samples_per_token in eval_lm
parents
b458977a
891f2307
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
eval_lm.py
eval_lm.py
+1
-2
No files found.
eval_lm.py
View file @
3feaccf3
...
...
@@ -17,8 +17,7 @@ from fairseq.sequence_scorer import SequenceScorer
def
main
(
args
):
assert
args
.
path
is
not
None
,
'--path required for evaluation!'
if
args
.
tokens_per_sample
is
None
:
args
.
tokens_per_sample
=
1024
args
.
tokens_per_sample
=
getattr
(
args
,
'tokens_per_sample'
,
1024
)
print
(
args
)
use_cuda
=
torch
.
cuda
.
is_available
()
and
not
args
.
cpu
...
...
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