Commit 1ee1969c authored by Hongkun Yu's avatar Hongkun Yu Committed by A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 347490358
parent 786346f3
......@@ -26,7 +26,6 @@ import tensorflow as tf
from official.modeling import hyperparams
from official.modeling import tf_utils
from official.nlp import keras_nlp
from official.nlp.modeling import networks
from official.nlp.projects.bigbird import encoder as bigbird_encoder
......@@ -186,9 +185,8 @@ ENCODER_CLS = {
@gin.configurable
def build_encoder(
config: EncoderConfig,
embedding_layer: Optional[keras_nlp.layers.OnDeviceEmbedding] = None,
def build_encoder(config: EncoderConfig,
embedding_layer: Optional[tf.keras.layers.Layer] = None,
encoder_cls=None,
bypass_config: bool = False):
"""Instantiate a Transformer encoder network from EncoderConfig.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment