Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
fschlatt committed Jan 13, 2025
1 parent 4dc0c94 commit 640a380
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightning_ir/base/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def _pooling(
if attention_mask is not None:
embeddings = embeddings.masked_fill(~attention_mask.bool().unsqueeze(-1), -1e9)
return embeddings.max(dim=1, keepdim=True).values
raise ValueError(f"Unknown pooling strategy: {self.pooling_strategy}")
raise ValueError(f"Unknown pooling strategy: {pooling_strategy}")

@classmethod
def _load_pretrained_model(
Expand Down

0 comments on commit 640a380

Please sign in to comment.