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
ModelZoo
ResNet50_tensorflow
Commits
03d1cda8
Commit
03d1cda8
authored
Dec 10, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 346790357
parent
5fc4c351
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/nlp/projects/bigbird/attention.py
official/nlp/projects/bigbird/attention.py
+1
-1
No files found.
official/nlp/projects/bigbird/attention.py
View file @
03d1cda8
...
...
@@ -476,7 +476,7 @@ class BigBirdAttention(tf.keras.layers.MultiHeadAttention):
attention_output
=
self
.
_compute_attention
(
query
,
key
,
value
,
attention_mask
)
attention_output
.
set_shape
([
None
,
None
,
self
.
_num_heads
,
self
.
_
key
_dim
])
attention_output
.
set_shape
([
None
,
None
,
self
.
_num_heads
,
self
.
_
value
_dim
])
attention_output
=
self
.
_output_dense
(
attention_output
)
return
attention_output
...
...
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