Skip to content

Commit 12b1376

Browse files
committed
1 parent 219c81e commit 12b1376

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/colbert/index_updater.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def _add_pid_to_ivf(self, partitions, pid):
390390
assert sum(new_ivf_lengths) == len(new_ivf)
391391

392392
# Replace the current ivf with new_ivf
393-
self.curr_ivf = torch.tensor(new_ivf)
393+
self.curr_ivf = torch.tensor(new_ivf, dtype=torch.int32)
394394
self.curr_ivf_lengths = torch.tensor(new_ivf_lengths)
395395

396396
def _write_to_last_chunk(self, pid_start, pid_end, emb_start, emb_end):

0 commit comments

Comments
 (0)