Update modeling_sim.py
Browse files- modeling_sim.py +1 -1
modeling_sim.py
CHANGED
@@ -13,4 +13,4 @@ class SimModel(MobileBertModel):
|
|
13 |
def forward(self, input_ids, attention_mask, token_type_ids, return_dict):
|
14 |
print(input_ids, attention_mask, token_type_ids)
|
15 |
print(return_dict)
|
16 |
-
return self.encoder(input_ids, attention_mask, token_type_ids).last_hidden_state
|
|
|
13 |
def forward(self, input_ids, attention_mask, token_type_ids, return_dict):
|
14 |
print(input_ids, attention_mask, token_type_ids)
|
15 |
print(return_dict)
|
16 |
+
return self.encoder(input_ids=input_ids, attention_mask=attention_mask, token_type_ids=token_type_ids, return_dict=return_dict).last_hidden_state
|