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
1f08602f
Unverified
Commit
1f08602f
authored
Jun 26, 2018
by
Myle Ott
Committed by
GitHub
Jun 26, 2018
Browse files
Remove unnecessary assert (fixes #199) (#200)
parent
6edf81dd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
fairseq/data/dictionary.py
fairseq/data/dictionary.py
+0
-1
No files found.
fairseq/data/dictionary.py
View file @
1f08602f
...
...
@@ -133,7 +133,6 @@ class Dictionary(object):
i
+=
1
threshold_nwords
+=
1
assert
len
(
new_count
)
==
self
.
nspecial
or
min
(
new_count
[
self
.
nspecial
:])
>=
threshold
assert
len
(
new_symbols
)
%
padding_factor
==
0
assert
len
(
new_symbols
)
==
len
(
new_indices
)
...
...
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