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
eaa6db92
Commit
eaa6db92
authored
Nov 03, 2018
by
thomwolf
Browse files
Merge branch 'master' of
https://github.com/huggingface/pytorch-pretrained-BERT
parents
f8276008
f18ae210
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
modeling.py
modeling.py
+1
-1
No files found.
modeling.py
View file @
eaa6db92
...
@@ -487,7 +487,7 @@ class BertForQuestionAnswering(nn.Module):
...
@@ -487,7 +487,7 @@ class BertForQuestionAnswering(nn.Module):
m
.
weight
.
data
.
normal_
(
config
.
initializer_range
)
m
.
weight
.
data
.
normal_
(
config
.
initializer_range
)
elif
isinstance
(
m
,
BERTLayerNorm
):
elif
isinstance
(
m
,
BERTLayerNorm
):
m
.
beta
.
data
.
normal_
(
config
.
initializer_range
)
m
.
beta
.
data
.
normal_
(
config
.
initializer_range
)
m
.
gamm
e
.
data
.
normal_
(
config
.
initializer_range
)
m
.
gamm
a
.
data
.
normal_
(
config
.
initializer_range
)
if
isinstance
(
m
,
nn
.
Linear
):
if
isinstance
(
m
,
nn
.
Linear
):
m
.
bias
.
data
.
zero_
()
m
.
bias
.
data
.
zero_
()
self
.
apply
(
init_weights
)
self
.
apply
(
init_weights
)
...
...
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