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
chenpangpang
transformers
Commits
8efc6dd5
Commit
8efc6dd5
authored
Dec 18, 2019
by
Lysandre
Browse files
fix #2214
parent
94c99db3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
transformers/configuration_xlm.py
transformers/configuration_xlm.py
+3
-0
No files found.
transformers/configuration_xlm.py
View file @
8efc6dd5
...
...
@@ -144,6 +144,9 @@ class XLMConfig(PretrainedConfig):
self
.
start_n_top
=
start_n_top
self
.
end_n_top
=
end_n_top
if
"n_words"
in
kwargs
:
self
.
n_words
=
kwargs
[
"n_words"
]
@
property
def
n_words
(
self
):
# For backward compatibility
return
self
.
vocab_size
...
...
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