Skip to content

Commit

Permalink
Merge in main
Browse files Browse the repository at this point in the history
Signed-off-by: Vibhu Jawa <[email protected]>
  • Loading branch information
VibhuJawa committed Feb 5, 2025
1 parent 3cb6354 commit d876faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_semdedup.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def get_reference_embeddings(

if pooling_strategy == "last_token":
embeddings = outputs.last_hidden_state[:, -1, :]
elif pooling_strategy == "mean":
elif pooling_strategy == "mean_pooling":
token_embeddings = outputs.last_hidden_state
attention_mask = inputs["attention_mask"]
input_mask_expanded = (
Expand Down

0 comments on commit d876faa

Please sign in to comment.