jwieting commited on
Commit
196626e
1 Parent(s): a38759a

Update modeling_sim.py

Browse files
Files changed (1) hide show
  1. modeling_sim.py +1 -1
modeling_sim.py CHANGED
@@ -10,6 +10,6 @@ class SimModel(MobileBertModel):
10
  # Initialize weights and apply final processing
11
  self.post_init()
12
 
13
- def forward(self, input_ids, attention_mask, token_type_ids):
14
  print(input_ids, attention_mask, token_type_ids)
15
  return self.encoder(input_ids, attention_mask).last_hidden_state
 
10
  # Initialize weights and apply final processing
11
  self.post_init()
12
 
13
+ def forward(self, input_ids, attention_mask, token_type_ids, return_dict):
14
  print(input_ids, attention_mask, token_type_ids)
15
  return self.encoder(input_ids, attention_mask).last_hidden_state