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
0f8ad892
Unverified
Commit
0f8ad892
authored
Aug 28, 2019
by
Thomas Wolf
Committed by
GitHub
Aug 28, 2019
Browse files
Merge pull request #1135 from stefan-it/master
distilbert: fix number of hidden_size
parents
9ce42dc5
ed2ab1c2
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 @
0f8ad892
...
@@ -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