We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8f81e7 commit 5d3b4dfCopy full SHA for 5d3b4df
official/nlp/modeling/networks/mobile_bert_encoder.py
@@ -165,7 +165,6 @@ def __init__(self,
165
super().__init__(
166
inputs=self.inputs, outputs=outputs, **kwargs)
167
self._config = dict(
168
- name=self.name,
169
word_vocab_size=word_vocab_size,
170
word_embed_size=word_embed_size,
171
type_vocab_size=type_vocab_size,
@@ -187,6 +186,8 @@ def __init__(self,
187
186
input_mask_dtype=input_mask_dtype,
188
**kwargs,
189
)
+ if 'name' not in self._config:
190
+ self._config['name'] = self.name
191
192
def get_config(self):
193
return dict(self._config)
0 commit comments