Skip to content

Commit

Permalink
Fix dtype for searcher pids
Browse files Browse the repository at this point in the history
  • Loading branch information
santhnm2 committed Nov 17, 2023
1 parent 03c8fc8 commit b97e216
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colbert/search/index_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def rank(self, config, Q, filter_fn=None, pids=None):
pids, centroid_scores = self.retrieve(config, Q)
else:
centroid_scores = None
pids = torch.tensor(pids, dtype=pids.dtype, device=Q.device)
pids = torch.tensor(pids, dtype=torch.int32, device=Q.device)

if filter_fn is not None:
filtered_pids = filter_fn(pids)
Expand Down

0 comments on commit b97e216

Please sign in to comment.