Skip to content

Commit

Permalink
Update IndexRefine.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Tickdack authored Nov 13, 2024
1 parent 787cba9 commit 9350e67
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions faiss/IndexRefine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ void IndexRefine::add(idx_t n, const float* x) {
ntotal = refine_index->ntotal;
}

size_t IndexRefine::remove_ids(const IDSelector& sel) {
FAISS_THROW_IF_NOT(is_trained);
base_index->remove_ids(sel);
refine_index->remove_ids(sel);
ntotal = refine_index->ntotal;
return -1;
}

void IndexRefine::reset() {
base_index->reset();
refine_index->reset();
Expand Down

0 comments on commit 9350e67

Please sign in to comment.