joaoalvarenga commited on
Commit
eb9a32d
1 Parent(s): 0ab249c

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -115,7 +115,7 @@ def evaluate(batch):
115
  logits = model(inputs.input_values.to("cuda"), attention_mask=inputs.attention_mask.to("cuda")).logits
116
 
117
  pred_ids = torch.argmax(logits, dim=-1)
118
- tbatch["pred_strings"] = processor.batch_decode(pred_ids)
119
  return batch
120
 
121
  result = test_dataset.map(evaluate, batched=True, batch_size=8)
 
115
  logits = model(inputs.input_values.to("cuda"), attention_mask=inputs.attention_mask.to("cuda")).logits
116
 
117
  pred_ids = torch.argmax(logits, dim=-1)
118
+ batch["pred_strings"] = processor.batch_decode(pred_ids)
119
  return batch
120
 
121
  result = test_dataset.map(evaluate, batched=True, batch_size=8)