@@ -134,8 +134,8 @@ def __init__(self,
134134 ** embedding_cfg ) if embedding_cfg else embedding_cls ()
135135 else :
136136 embedding_network = embedding_cls
137- inputs = embedding_network .inputs
138- embeddings , attention_mask = embedding_network (inputs )
137+ inputs = embedding_network .inputs # pyrefly: ignore[missing-attribute]
138+ embeddings , attention_mask = embedding_network (inputs ) # pyrefly: ignore[not-callable]
139139 embedding_layer = None
140140 position_embedding_layer = None
141141 type_embedding_layer = None
@@ -193,7 +193,7 @@ def __init__(self,
193193 mask_layer = mask_cls (** mask_cfg )
194194 else :
195195 mask_layer = mask_cls
196- attention_mask = mask_layer (embeddings , mask )
196+ attention_mask = mask_layer (embeddings , mask ) # pyrefly: ignore[not-callable]
197197
198198 data = embeddings
199199
@@ -225,9 +225,9 @@ def __init__(self,
225225 else :
226226 layer = cur_hidden_cls
227227 if recursive :
228- data , recursive_states = layer ([data , attention_mask , recursive_states ])
228+ data , recursive_states = layer ([data , attention_mask , recursive_states ]) # pyrefly: ignore[not-callable]
229229 else :
230- data = layer ([data , attention_mask ])
230+ data = layer ([data , attention_mask ]) # pyrefly: ignore[not-callable]
231231 layer_output_data .append (data )
232232 hidden_layers .append (layer )
233233
0 commit comments