Commit 1d53f9cb authored by VictorSanh's avatar VictorSanh
Browse files

Fix cuda compability for evaluation

parent 1d8511f8
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment