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
3ab3dd6a
Commit
3ab3dd6a
authored
Mar 11, 2022
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 434027325
parent
68039be4
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 @
3ab3dd6a
...
@@ -24,7 +24,7 @@ MultiHeadAttention = tf.keras.layers.MultiHeadAttention
...
@@ -24,7 +24,7 @@ MultiHeadAttention = tf.keras.layers.MultiHeadAttention
@
tf
.
keras
.
utils
.
register_keras_serializable
(
package
=
"Text"
)
@
tf
.
keras
.
utils
.
register_keras_serializable
(
package
=
"Text"
)
class
CachedAttention
(
tf
.
keras
.
layers
.
MultiHeadAttention
):
class
CachedAttention
(
tf
.
keras
.
layers
.
MultiHeadAttention
):
"""Attention layer with cache used for auto
-a
gressive decoding.
"""Attention layer with cache used for auto
re
gressive decoding.
Arguments are the same as `tf.keras.layers.MultiHeadAttention` layer.
Arguments are the same as `tf.keras.layers.MultiHeadAttention` layer.
"""
"""
...
...
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