Unverified Commit 83086858 authored by Berowne's avatar Berowne Committed by GitHub
Browse files

fixed typo in warning line 207. (#7718)

replace 'men_len' with 'mem_len' to match parameter name
parent 03ec02a6
...@@ -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 `men_len` to a non-zero value, for example " " Consider setting `mem_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"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment