Skip to content

Commit

Permalink
bugfix ModelForCrossEncoding
Browse files Browse the repository at this point in the history
  • Loading branch information
c7nw3r committed Jul 23, 2023
1 parent 108166e commit 3fa2531
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion onnx_transformers/model_for_cross_encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ def __init__(self, config_path: str, use_sigmoid: bool = True):
self.use_sigmoid = use_sigmoid

def __call__(self, batch: Batch, config: Optional[EncodingConfig] = None):
logits = np.squeeze(self.__call__(batch, config))
logits = np.squeeze(super().__call__(batch, config))
return sigmoid(logits) if self.use_sigmoid else logits

0 comments on commit 3fa2531

Please sign in to comment.