jwieting commited on
Commit
6901024
1 Parent(s): ca33b03

Update modeling_sim.py

Browse files
Files changed (1) hide show
  1. 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