Skip to content

Commit

Permalink
(break) Remove train_residual method
Browse files Browse the repository at this point in the history
- no longer exists in Faiss 1.8.0
  • Loading branch information
Enet4 committed Mar 27, 2024
1 parent b7772b3 commit f0820cb
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/index/scalar_quantizer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,18 +257,6 @@ where
faiss_IndexIVFScalarQuantizer_set_nprobe(self.inner_ptr(), value as usize);
}
}

pub fn train_residual(&mut self, x: &[f32]) -> Result<()> {
unsafe {
let n = x.len() / self.d() as usize;
faiss_try(faiss_IndexIVFScalarQuantizer_train_residual(
self.inner_ptr(),
n as i64,
x.as_ptr(),
))?;
Ok(())
}
}
}

impl<Q> NativeIndex for IVFScalarQuantizerIndexImpl<Q> {
Expand Down

0 comments on commit f0820cb

Please sign in to comment.