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
4cd908ef
Commit
4cd908ef
authored
Jun 10, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Jun 10, 2020
Browse files
Fix typo.
PiperOrigin-RevId: 315738983
parent
99bdc3dc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/nlp/modeling/layers/attention.py
official/nlp/modeling/layers/attention.py
+1
-1
No files found.
official/nlp/modeling/layers/attention.py
View file @
4cd908ef
...
@@ -145,7 +145,7 @@ class MultiHeadAttention(tf.keras.layers.Layer):
...
@@ -145,7 +145,7 @@ class MultiHeadAttention(tf.keras.layers.Layer):
>>> target = tf.keras.Input(shape=[8, 16])
>>> target = tf.keras.Input(shape=[8, 16])
>>> source = tf.keras.Input(shape=[4, 16])
>>> source = tf.keras.Input(shape=[4, 16])
>>> mask_tensor = tf.keras.Input(shape=[8, 4])
>>> mask_tensor = tf.keras.Input(shape=[8, 4])
>>> output_tensor, weights = layer([
input_tensor, input_tensor
])
>>> output_tensor, weights = layer([
target, source
])
>>> print(output_tensor.shape), print(weights.shape)
>>> print(output_tensor.shape), print(weights.shape)
(None, 8, 16) (None, 2, 8, 4)
(None, 8, 16) (None, 2, 8, 4)
...
...
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