Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCatt91 committed Oct 27, 2023
1 parent 247d88b commit d30fff8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions besskge/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def __init__(
return_scores: bool = False,
return_topk: bool = False,
k: int = 10,
windows_size: int = 1000,
window_size: int = 1000,
use_ipu_model: bool = False,
) -> None:
"""
Expand Down Expand Up @@ -75,7 +75,7 @@ def __init__(
:param k:
If `return_topk` is set to True, for each query return the
top-k most likely predictions (after filtering). Default: 10.
:param windows_size:
:param window_size:
Size of the sliding window, namely the number of negative entities
scored against each query at each step on IPU and returned to host.
Should be decreased with large batch sizes, to avoid an OOM error.
Expand Down Expand Up @@ -113,7 +113,7 @@ def __init__(
self.return_scores = return_scores
self.return_topk = return_topk
self.k = k
self.window_size = windows_size
self.window_size = window_size
self.corruption_scheme = corruption_scheme
self.bess_module = AllScoresBESS(
self.candidate_sampler, self.score_fn, self.window_size
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def test_all_scores_pipeline(
return_scores=True,
return_topk=True,
k=10,
windows_size=1000,
window_size=1000,
use_ipu_model=True,
)
out = pipeline()
Expand Down

0 comments on commit d30fff8

Please sign in to comment.