jwieting commited on
Commit
eddb7d2
1 Parent(s): fa4f698

Update modeling_sim.py

Browse files
Files changed (1) hide show
  1. modeling_sim.py +3 -3
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):
14
- print(input_ids)
15
- return self.encoder(input_ids).last_hidden_state
 
10
  # Initialize weights and apply final processing
11
  self.post_init()
12
 
13
+ def forward(self, input_ids, attention_mask):
14
+ print(input_ids, attention_mask)
15
+ return self.encoder(input_ids, attention_mask).last_hidden_state