We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea7bf7b commit 12ad9c9Copy full SHA for 12ad9c9
examples/hf_transformers/custom/forward_proc.py
@@ -10,7 +10,7 @@ def forward_batch_as_kwargs(model, sample_batch, targets=None, supp_dict=None):
10
def forward_batch_as_kwargs_for_distillbert(model, sample_batch, targets=None, supp_dict=None):
11
inputs = {
12
'input_ids': sample_batch[0],
13
- 'attentio_mask': sample_batch[1],
+ 'attention_mask': sample_batch[1],
14
'start_positions': sample_batch[3],
15
'end_positions': sample_batch[4],
16
}
0 commit comments