Skip to content

Commit c8e5cd5

Browse files
joezougtensorflower-gardener
authored andcommitted
No public description
PiperOrigin-RevId: 670736074
1 parent aa65211 commit c8e5cd5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

official/nlp/modeling/networks/mobile_bert_encoder.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,10 @@ def __init__(self,
162162
pooled_output=first_token,
163163
encoder_outputs=all_layer_outputs,
164164
attention_scores=all_attention_scores)
165+
super().__init__(
166+
inputs=self.inputs, outputs=outputs, **kwargs)
165167
self._config = dict(
168+
name=self.name,
166169
word_vocab_size=word_vocab_size,
167170
word_embed_size=word_embed_size,
168171
type_vocab_size=type_vocab_size,
@@ -182,11 +185,9 @@ def __init__(self,
182185
normalization_type=normalization_type,
183186
classifier_activation=classifier_activation,
184187
input_mask_dtype=input_mask_dtype,
188+
**kwargs,
185189
)
186190

187-
super().__init__(
188-
inputs=self.inputs, outputs=outputs, **kwargs)
189-
190191
def get_config(self):
191192
return dict(self._config)
192193

0 commit comments

Comments
 (0)