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: 4614ae42d0fb534c9c9ce3314fd3c26a0c74d049pull/3946/head
parent
6441b564da
commit
3daf48cc2a
|
@ -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 += "."
|
||||
|
|
Loading…
Reference in New Issue