Fix total_rows (#3942)

Summary:
Pull Request resolved: https://github.com/facebookresearch/faiss/pull/3942

Reverted splitting of partition string to align with previous behavior of finding partition intersection rather than the union.
Also changed util dependency from laser to vector_search, which makes more sense.

Reviewed By: kuarora

Differential Revision: D64274531

fbshipit-source-id: 4614ae42d0fb534c9c9ce3314fd3c26a0c74d049
pull/3946/head
George Wang 2024-10-11 19:27:56 -07:00 committed by Facebook GitHub Bot
parent 6441b564da
commit 3daf48cc2a
1 changed files with 3 additions and 1 deletions

View File

@ -113,7 +113,9 @@ class DatasetDescriptor:
assert self.tablename is not None
filename += self.tablename
if self.partitions is not None:
filename += "_" + "_".join(self.partitions).replace("=", "_")
filename += "_" + "_".join(
self.partitions
).replace("=", "_").replace("/", "_")
if self.num_vectors is not None:
filename += f"_{self.num_vectors}"
filename += "."