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
e7dfe641
Commit
e7dfe641
authored
Dec 04, 2020
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 345773699
parent
ef45f4a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
official/nlp/keras_nlp/layers/on_device_embedding.py
official/nlp/keras_nlp/layers/on_device_embedding.py
+8
-0
No files found.
official/nlp/keras_nlp/layers/on_device_embedding.py
View file @
e7dfe641
...
...
@@ -96,3 +96,11 @@ class OnDeviceEmbedding(tf.keras.layers.Layer):
if
self
.
_scale_factor
:
embeddings
*=
self
.
_scale_factor
return
embeddings
@
property
def
vocab_size
(
self
):
return
self
.
_vocab_size
@
property
def
embedding_width
(
self
):
return
self
.
_embedding_width
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