Skip to content

Commit f0820cb

Browse files
committed
(break) Remove train_residual method
- no longer exists in Faiss 1.8.0
1 parent b7772b3 commit f0820cb

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/index/scalar_quantizer.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -257,18 +257,6 @@ where
257257
faiss_IndexIVFScalarQuantizer_set_nprobe(self.inner_ptr(), value as usize);
258258
}
259259
}
260-
261-
pub fn train_residual(&mut self, x: &[f32]) -> Result<()> {
262-
unsafe {
263-
let n = x.len() / self.d() as usize;
264-
faiss_try(faiss_IndexIVFScalarQuantizer_train_residual(
265-
self.inner_ptr(),
266-
n as i64,
267-
x.as_ptr(),
268-
))?;
269-
Ok(())
270-
}
271-
}
272260
}
273261

274262
impl<Q> NativeIndex for IVFScalarQuantizerIndexImpl<Q> {

0 commit comments

Comments
 (0)