Skip to content

Commit 5d3b4df

Browse files
joezougtensorflower-gardener
authored andcommitted
No public description
PiperOrigin-RevId: 673162902
1 parent d8f81e7 commit 5d3b4df

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

official/nlp/modeling/networks/mobile_bert_encoder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ def __init__(self,
165165
super().__init__(
166166
inputs=self.inputs, outputs=outputs, **kwargs)
167167
self._config = dict(
168-
name=self.name,
169168
word_vocab_size=word_vocab_size,
170169
word_embed_size=word_embed_size,
171170
type_vocab_size=type_vocab_size,
@@ -187,6 +186,8 @@ def __init__(self,
187186
input_mask_dtype=input_mask_dtype,
188187
**kwargs,
189188
)
189+
if 'name' not in self._config:
190+
self._config['name'] = self.name
190191

191192
def get_config(self):
192193
return dict(self._config)

0 commit comments

Comments
 (0)