Skip to content

Commit

Permalink
Update layerwise.py
Browse files Browse the repository at this point in the history
  • Loading branch information
545999961 authored Dec 3, 2024
1 parent 777a9ac commit 4e636fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion FlagEmbedding/inference/reranker/decoder_only/layerwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,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 4e636fe

Please sign in to comment.