Skip to content

Commit

Permalink
Initialize id_map as null (#1363)
Browse files Browse the repository at this point in the history
Signed-off-by: Heemin Kim <[email protected]>
  • Loading branch information
heemin32 committed Jan 19, 2024
1 parent 05e5be1 commit 209bc6b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
Date: Wed, 6 Dec 2023 16:33:52 -0800
Subject: [PATCH] Custom patch to support multi-vector
Expand Down Expand Up @@ -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 @@
Expand All @@ -277,7 +277,7 @@ index 00000000..70918266
+/** ResultCollectorFactory to create a ResultCollector object */
+struct ResultCollectorFactory {
+ DefaultCollector default_collector;
+ const std::vector<int64_t>* id_map;
+ const std::vector<int64_t>* id_map = nullptr;
+
+ // Create a new ResultCollector object
+ virtual ResultCollector* new_collector() {
Expand Down

0 comments on commit 209bc6b

Please sign in to comment.