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
895d3946
Unverified
Commit
895d3946
authored
Aug 31, 2020
by
Lysandre Debut
Committed by
GitHub
Aug 31, 2020
Browse files
TF Flaubert w/ pre-norm (#6841)
parent
4561f05c
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_flaubert.py
src/transformers/modeling_tf_flaubert.py
+1
-1
No files found.
src/transformers/modeling_tf_flaubert.py
View file @
895d3946
...
...
@@ -296,7 +296,7 @@ class TFFlaubertMainLayer(TFXLMMainLayer):
else
:
tensor_normalized
=
self
.
layer_norm1
[
i
](
tensor
)
attn_outputs
=
self
.
attentions
[
i
](
tensor_normalized
,
attn_mask
,
None
,
cache
,
head_mask
[
i
],
training
=
training
tensor_normalized
,
attn_mask
,
None
,
cache
,
head_mask
[
i
],
output_attentions
,
training
=
training
)
attn
=
attn_outputs
[
0
]
if
output_attentions
:
...
...
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