Skip to content

Commit

Permalink
Update lightweight.py
Browse files Browse the repository at this point in the history
  • Loading branch information
545999961 authored Dec 3, 2024
1 parent 4e636fe commit 03afd39
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def compute_score_single_gpu(
if normalize:
all_scores[i] = [sigmoid(score) for score in all_scores[i]]

if isinstance(all_scores[0], list):
if len(all_scores) == 1 and isinstance(all_scores[0], list):
all_scores = all_scores[0]

return all_scores

0 comments on commit 03afd39

Please sign in to comment.