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
83086858
Unverified
Commit
83086858
authored
Oct 12, 2020
by
Berowne
Committed by
GitHub
Oct 12, 2020
Browse files
fixed typo in warning line 207. (#7718)
replace 'men_len' with 'mem_len' to match parameter name
parent
03ec02a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/configuration_xlnet.py
src/transformers/configuration_xlnet.py
+1
-1
No files found.
src/transformers/configuration_xlnet.py
View file @
83086858
...
@@ -204,7 +204,7 @@ class XLNetConfig(PretrainedConfig):
...
@@ -204,7 +204,7 @@ class XLNetConfig(PretrainedConfig):
if
mem_len
is
None
or
mem_len
==
0
:
if
mem_len
is
None
or
mem_len
==
0
:
warnings
.
warn
(
warnings
.
warn
(
"This config doesn't use attention memories, a core feature of XLNet."
"This config doesn't use attention memories, a core feature of XLNet."
" Consider setting `me
n
_len` to a non-zero value, for example "
" Consider setting `me
m
_len` to a non-zero value, for example "
"`xlnet = XLNetLMHeadModel.from_pretrained('xlnet-base-cased'', mem_len=1024)`,"
"`xlnet = XLNetLMHeadModel.from_pretrained('xlnet-base-cased'', mem_len=1024)`,"
" for accurate training performance as well as an order of magnitude faster inference."
" for accurate training performance as well as an order of magnitude faster inference."
" Starting from version 3.5.0, the default parameter will be 1024, following"
" Starting from version 3.5.0, the default parameter will be 1024, following"
...
...
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