Skip to content

Commit

Permalink
fix: various PR's
Browse files Browse the repository at this point in the history
  • Loading branch information
stillmatic committed May 30, 2023
1 parent 219c81e commit 12b1376
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/colbert/index_updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def _add_pid_to_ivf(self, partitions, pid):
assert sum(new_ivf_lengths) == len(new_ivf)

# Replace the current ivf with new_ivf
self.curr_ivf = torch.tensor(new_ivf)
self.curr_ivf = torch.tensor(new_ivf, dtype=torch.int32)
self.curr_ivf_lengths = torch.tensor(new_ivf_lengths)

def _write_to_last_chunk(self, pid_start, pid_end, emb_start, emb_end):
Expand Down

0 comments on commit 12b1376

Please sign in to comment.