Skip to content

Commit 03afd39

Browse files
authored
Update lightweight.py
1 parent 4e636fe commit 03afd39

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

FlagEmbedding/inference/reranker/decoder_only/lightweight.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ def compute_score_single_gpu(
435435
if normalize:
436436
all_scores[i] = [sigmoid(score) for score in all_scores[i]]
437437

438-
if isinstance(all_scores[0], list):
438+
if len(all_scores) == 1 and isinstance(all_scores[0], list):
439439
all_scores = all_scores[0]
440440

441441
return all_scores

0 commit comments

Comments
 (0)