Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
7f5d8534
Commit
7f5d8534
authored
Aug 28, 2019
by
VictorSanh
Browse files
fix small typo
parent
906581ae
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
pytorch_transformers/modeling_bert.py
pytorch_transformers/modeling_bert.py
+1
-1
pytorch_transformers/modeling_transfo_xl.py
pytorch_transformers/modeling_transfo_xl.py
+1
-1
pytorch_transformers/modeling_xlm.py
pytorch_transformers/modeling_xlm.py
+1
-1
pytorch_transformers/modeling_xlnet.py
pytorch_transformers/modeling_xlnet.py
+1
-1
No files found.
pytorch_transformers/modeling_bert.py
View file @
7f5d8534
...
...
@@ -216,7 +216,7 @@ class BertConfig(PretrainedConfig):
self
.
layer_norm_eps
=
layer_norm_eps
else
:
raise
ValueError
(
"First argument must be either a vocabulary size (int)"
"or the path to a pretrained model config file (str)"
)
"
or the path to a pretrained model config file (str)"
)
...
...
pytorch_transformers/modeling_transfo_xl.py
View file @
7f5d8534
...
...
@@ -285,7 +285,7 @@ class TransfoXLConfig(PretrainedConfig):
self
.
init_std
=
init_std
else
:
raise
ValueError
(
"First argument must be either a vocabulary size (int)"
"or the path to a pretrained model config file (str)"
)
"
or the path to a pretrained model config file (str)"
)
@
property
def
max_position_embeddings
(
self
):
...
...
pytorch_transformers/modeling_xlm.py
View file @
7f5d8534
...
...
@@ -178,7 +178,7 @@ class XLMConfig(PretrainedConfig):
self
.
end_n_top
=
end_n_top
else
:
raise
ValueError
(
"First argument must be either a vocabulary size (int)"
"or the path to a pretrained model config file (str)"
)
"
or the path to a pretrained model config file (str)"
)
@
property
def
vocab_size
(
self
):
...
...
pytorch_transformers/modeling_xlnet.py
View file @
7f5d8534
...
...
@@ -306,7 +306,7 @@ class XLNetConfig(PretrainedConfig):
self
.
end_n_top
=
end_n_top
else
:
raise
ValueError
(
"First argument must be either a vocabulary size (int)"
"or the path to a pretrained model config file (str)"
)
"
or the path to a pretrained model config file (str)"
)
@
property
def
max_position_embeddings
(
self
):
...
...
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