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
0df91ee4
Unverified
Commit
0df91ee4
authored
Nov 18, 2020
by
Ratthachat (Jung)
Committed by
GitHub
Nov 18, 2020
Browse files
self.self.activation_dropout -> self.activation_dropout (#8611)
(one line typo)
parent
cdf1b7ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/models/bart/modeling_tf_bart.py
src/transformers/models/bart/modeling_tf_bart.py
+1
-1
No files found.
src/transformers/models/bart/modeling_tf_bart.py
View file @
0df91ee4
...
@@ -267,7 +267,7 @@ class TFEncoderLayer(Layer):
...
@@ -267,7 +267,7 @@ class TFEncoderLayer(Layer):
if
self
.
normalize_before
:
if
self
.
normalize_before
:
x
=
self
.
final_layer_norm
(
x
)
x
=
self
.
final_layer_norm
(
x
)
x
=
self
.
activation_fn
(
self
.
fc1
(
x
))
x
=
self
.
activation_fn
(
self
.
fc1
(
x
))
x
=
tf
.
nn
.
dropout
(
x
,
rate
=
self
.
self
.
activation_dropout
if
training
else
0
)
x
=
tf
.
nn
.
dropout
(
x
,
rate
=
self
.
activation_dropout
if
training
else
0
)
x
=
self
.
fc2
(
x
)
x
=
self
.
fc2
(
x
)
x
=
tf
.
nn
.
dropout
(
x
,
rate
=
self
.
dropout
if
training
else
0
)
x
=
tf
.
nn
.
dropout
(
x
,
rate
=
self
.
dropout
if
training
else
0
)
x
=
residual
+
x
x
=
residual
+
x
...
...
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