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
f1679d7c
Unverified
Commit
f1679d7c
authored
Jun 20, 2020
by
Zhu Baohe
Committed by
GitHub
Jun 20, 2020
Browse files
Fix dropout in TFMobileBert (#5150)
parent
5ed94b23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/modeling_tf_mobilebert.py
src/transformers/modeling_tf_mobilebert.py
+1
-1
No files found.
src/transformers/modeling_tf_mobilebert.py
View file @
f1679d7c
...
...
@@ -370,7 +370,7 @@ class TFMobileBertOutput(tf.keras.layers.Layer):
hidden_states
=
self
.
dense
(
hidden_states
)
if
not
self
.
use_bottleneck
:
hidden_states
=
self
.
dropout
(
hidden_states
)
hidden_states
=
self
.
dropout
(
hidden_states
,
training
=
training
)
hidden_states
=
self
.
LayerNorm
(
hidden_states
+
residual_tensor_1
)
else
:
hidden_states
=
self
.
LayerNorm
(
hidden_states
+
residual_tensor_1
)
...
...
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