We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a0e2ee commit 8d8a916Copy full SHA for 8d8a916
python/usearch/io.py
@@ -63,7 +63,7 @@ def load_matrix(
63
return None
64
65
with open(filename, "rb") as f:
66
- rows, cols = np.fromfile(f, count=2, dtype=np.int32)
+ rows, cols = np.fromfile(f, count=2, dtype=np.int32).astype(np.uint64)
67
rows = (rows - start_row) if count_rows is None else count_rows
68
row_offset = start_row * scalar_size * cols
69
0 commit comments