Skip to content

Commit

Permalink
#147 related
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolay-r committed Jul 13, 2024
1 parent 883ef7e commit e18e744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arelight/pipelines/items/inference_bert_opennre.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def iter_results(parallel_model, eval_loader, data_ids):
# Save result
batch_size = pred.size(0)
for i in range(batch_size):
yield data_ids[l_ind], pred[i].item()
yield data_ids[l_ind], int(pred[i].item())
l_ind += 1

def __iter_predict_result(self, samples_filepath, batch_size):
Expand Down

0 comments on commit e18e744

Please sign in to comment.