Skip to content

Commit

Permalink
fix bug in trainer for testing cases with no target
Browse files Browse the repository at this point in the history
  • Loading branch information
gcroci2 committed Oct 30, 2023
1 parent 10a5795 commit bf1c8a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deeprank2/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ def _eval( # pylint: disable=too-many-locals
count_predictions += pred.shape[0]
sum_of_losses += loss_.detach().item() * pred.shape[0]
else:
target_vals = ['None'] * pred.shape[0]
target_vals += ['None'] * pred.shape[0]
eval_loss = 'None'

# Get the outputs for export
Expand Down

0 comments on commit bf1c8a3

Please sign in to comment.