From 209bc6b80482ef34ec509cec91bde4f51d9b86b3 Mon Sep 17 00:00:00 2001 From: Heemin Kim Date: Wed, 27 Dec 2023 16:03:39 -0800 Subject: [PATCH] Initialize id_map as null (#1363) Signed-off-by: Heemin Kim --- .../faiss/0001-Custom-patch-to-support-multi-vector.patch | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jni/patches/faiss/0001-Custom-patch-to-support-multi-vector.patch b/jni/patches/faiss/0001-Custom-patch-to-support-multi-vector.patch index 8bd42a1f56..b07620c7ea 100644 --- a/jni/patches/faiss/0001-Custom-patch-to-support-multi-vector.patch +++ b/jni/patches/faiss/0001-Custom-patch-to-support-multi-vector.patch @@ -1,4 +1,4 @@ -From 70c9b5d6408bb85fd1503002d29f9428fe0d48dc Mon Sep 17 00:00:00 2001 +From baa7e23c54637d68adac45f09633939b402405a9 Mon Sep 17 00:00:00 2001 From: Heemin Kim Date: Wed, 6 Dec 2023 16:33:52 -0800 Subject: [PATCH] Custom patch to support multi-vector @@ -259,7 +259,7 @@ index 00000000..a0489fd6 +} // namespace faiss diff --git a/faiss/impl/ResultCollectorFactory.h b/faiss/impl/ResultCollectorFactory.h new file mode 100644 -index 00000000..70918266 +index 00000000..b460b20b --- /dev/null +++ b/faiss/impl/ResultCollectorFactory.h @@ -0,0 +1,33 @@ @@ -277,7 +277,7 @@ index 00000000..70918266 +/** ResultCollectorFactory to create a ResultCollector object */ +struct ResultCollectorFactory { + DefaultCollector default_collector; -+ const std::vector* id_map; ++ const std::vector* id_map = nullptr; + + // Create a new ResultCollector object + virtual ResultCollector* new_collector() {