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,
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
You can’t perform that action at this time.
0 commit comments