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
1b98619a
Commit
1b98619a
authored
Dec 14, 2020
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Dec 14, 2020
Browse files
Internal change
PiperOrigin-RevId: 347490358
parent
19a7925c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
official/nlp/configs/encoders.py
official/nlp/configs/encoders.py
+4
-6
No files found.
official/nlp/configs/encoders.py
View file @
1b98619a
...
@@ -26,7 +26,6 @@ import tensorflow as tf
...
@@ -26,7 +26,6 @@ import tensorflow as tf
from
official.modeling
import
hyperparams
from
official.modeling
import
hyperparams
from
official.modeling
import
tf_utils
from
official.modeling
import
tf_utils
from
official.nlp
import
keras_nlp
from
official.nlp.modeling
import
networks
from
official.nlp.modeling
import
networks
from
official.nlp.projects.bigbird
import
encoder
as
bigbird_encoder
from
official.nlp.projects.bigbird
import
encoder
as
bigbird_encoder
...
@@ -186,9 +185,8 @@ ENCODER_CLS = {
...
@@ -186,9 +185,8 @@ ENCODER_CLS = {
@
gin
.
configurable
@
gin
.
configurable
def
build_encoder
(
def
build_encoder
(
config
:
EncoderConfig
,
config
:
EncoderConfig
,
embedding_layer
:
Optional
[
tf
.
keras
.
layers
.
Layer
]
=
None
,
embedding_layer
:
Optional
[
keras_nlp
.
layers
.
OnDeviceEmbedding
]
=
None
,
encoder_cls
=
None
,
encoder_cls
=
None
,
bypass_config
:
bool
=
False
):
bypass_config
:
bool
=
False
):
"""Instantiate a Transformer encoder network from EncoderConfig.
"""Instantiate a Transformer encoder network from EncoderConfig.
...
...
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