Skip to content

Commit 12ad9c9

Browse files
Fix a typo
1 parent ea7bf7b commit 12ad9c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/hf_transformers/custom/forward_proc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def forward_batch_as_kwargs(model, sample_batch, targets=None, supp_dict=None):
1010
def forward_batch_as_kwargs_for_distillbert(model, sample_batch, targets=None, supp_dict=None):
1111
inputs = {
1212
'input_ids': sample_batch[0],
13-
'attentio_mask': sample_batch[1],
13+
'attention_mask': sample_batch[1],
1414
'start_positions': sample_batch[3],
1515
'end_positions': sample_batch[4],
1616
}

0 commit comments

Comments
 (0)