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
7f824479
Commit
7f824479
authored
Aug 23, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Aug 23, 2020
Browse files
Clean up attention layer imports
PiperOrigin-RevId: 328085299
parent
00c7ea79
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
official/nlp/modeling/layers/attention.py
official/nlp/modeling/layers/attention.py
+0
-5
No files found.
official/nlp/modeling/layers/attention.py
View file @
7f824479
...
...
@@ -15,17 +15,12 @@
# ==============================================================================
"""Keras-based attention layer."""
# pylint: disable=g-classes-have-attributes
import
math
import
string
import
tensorflow
as
tf
EinsumDense
=
tf
.
keras
.
layers
.
experimental
.
EinsumDense
_CHR_IDX
=
string
.
ascii_lowercase
MultiHeadAttention
=
tf
.
keras
.
layers
.
MultiHeadAttention
...
...
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