mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-30 17:52:35 +06:00
Fix cuda compability for evaluation
This commit is contained in:
parent
1d8511f8f2
commit
1d53f9cb72
@ -552,6 +552,7 @@ def main():
|
||||
input_ids = input_ids.to(device)
|
||||
input_mask = input_mask.float().to(device)
|
||||
segment_ids = segment_ids.to(device)
|
||||
label_ids = label_ids.to(device)
|
||||
|
||||
tmp_eval_loss, logits = model(input_ids, segment_ids, input_mask, label_ids)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user