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
78781869
Commit
78781869
authored
Sep 14, 2020
by
Zhenyu Tan
Committed by
A. Unique TensorFlower
Sep 14, 2020
Browse files
Public export.
PiperOrigin-RevId: 331634511
parent
18623283
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
official/nlp/keras_nlp/layers/on_device_embedding.py
official/nlp/keras_nlp/layers/on_device_embedding.py
+1
-1
official/nlp/keras_nlp/layers/position_embedding.py
official/nlp/keras_nlp/layers/position_embedding.py
+1
-1
official/nlp/keras_nlp/layers/transformer_encoder_block.py
official/nlp/keras_nlp/layers/transformer_encoder_block.py
+1
-2
No files found.
official/nlp/keras_nlp/layers/on_device_embedding.py
View file @
78781869
# Copyright 20
19
The TensorFlow Authors. All Rights Reserved.
# Copyright 20
20
The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
...
...
official/nlp/keras_nlp/layers/position_embedding.py
View file @
78781869
...
...
@@ -17,7 +17,7 @@
import
tensorflow
as
tf
@
tf
.
keras
.
utils
.
register_keras_serializable
(
package
=
"
Text
"
)
@
tf
.
keras
.
utils
.
register_keras_serializable
(
package
=
"
keras_nlp
"
)
class
PositionEmbedding
(
tf
.
keras
.
layers
.
Layer
):
"""Creates a positional embedding.
...
...
official/nlp/keras_nlp/layers/transformer_encoder_block.py
View file @
78781869
...
...
@@ -14,11 +14,10 @@
# ==============================================================================
"""Keras-based TransformerEncoder block layer."""
# Import libraries
import
tensorflow
as
tf
@
tf
.
keras
.
utils
.
register_keras_serializable
(
package
=
"
Text
"
)
@
tf
.
keras
.
utils
.
register_keras_serializable
(
package
=
"
keras_nlp
"
)
class
TransformerEncoderBlock
(
tf
.
keras
.
layers
.
Layer
):
"""TransformerEncoderBlock 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