File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
official/nlp/modeling/networks Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -162,7 +162,10 @@ def __init__(self,
162
162
pooled_output = first_token ,
163
163
encoder_outputs = all_layer_outputs ,
164
164
attention_scores = all_attention_scores )
165
+ super ().__init__ (
166
+ inputs = self .inputs , outputs = outputs , ** kwargs )
165
167
self ._config = dict (
168
+ name = self .name ,
166
169
word_vocab_size = word_vocab_size ,
167
170
word_embed_size = word_embed_size ,
168
171
type_vocab_size = type_vocab_size ,
@@ -182,11 +185,9 @@ def __init__(self,
182
185
normalization_type = normalization_type ,
183
186
classifier_activation = classifier_activation ,
184
187
input_mask_dtype = input_mask_dtype ,
188
+ ** kwargs ,
185
189
)
186
190
187
- super ().__init__ (
188
- inputs = self .inputs , outputs = outputs , ** kwargs )
189
-
190
191
def get_config (self ):
191
192
return dict (self ._config )
192
193
You can’t perform that action at this time.
0 commit comments