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
ed2ab1c2
Commit
ed2ab1c2
authored
Aug 28, 2019
by
Stefan Schweter
Browse files
distilbert: fix number of hidden_size
parent
0ecfd17f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
pytorch_transformers/modeling_distilbert.py
pytorch_transformers/modeling_distilbert.py
+1
-1
No files found.
pytorch_transformers/modeling_distilbert.py
View file @
ed2ab1c2
...
@@ -95,7 +95,7 @@ class DistilBertConfig(PretrainedConfig):
...
@@ -95,7 +95,7 @@ class DistilBertConfig(PretrainedConfig):
" or the path to a pretrained model config file (str)"
)
" or the path to a pretrained model config file (str)"
)
@
property
@
property
def
hidden_size
(
self
):
def
hidden_size
(
self
):
return
self
.
hidden_
dim
return
self
.
dim
@
property
@
property
def
num_attention_heads
(
self
):
def
num_attention_heads
(
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