We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 777a9ac commit 4e636feCopy full SHA for 4e636fe
1 file changed
FlagEmbedding/inference/reranker/decoder_only/layerwise.py
@@ -374,7 +374,7 @@ def compute_score_single_gpu(
374
if normalize:
375
all_scores[i] = [sigmoid(score) for score in all_scores[i]]
376
377
- if isinstance(all_scores[0], list):
+ if len(all_scores) == 1 and isinstance(all_scores[0], list):
378
all_scores = all_scores[0]
379
380
return all_scores
0 commit comments