Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ffi ownership mistakes Scalar Quantizer Index #30

Merged
merged 1 commit into from
Jun 21, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/index/ivf_flat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use super::*;
use crate::error::Result;
use crate::faiss_try;
use std::mem;
use std::ptr;
use std::os::raw::c_int;
use std::ptr;

/// Alias for the native implementation of a flat index.
pub type IVFFlatIndex = IVFFlatIndexImpl;
Expand Down Expand Up @@ -125,7 +125,7 @@ impl IVFFlatIndexImpl {
* = 1: just pass on the training set to the train() of the quantizer
* = 2: kmeans training on a flat index + add the centroids to the quantizer
*/
#[derive(Debug, Copy, Clone, Eq, Hash, PartialEq)]
#[derive(Debug, Copy, Clone, Eq, Hash, PartialEq)]
pub enum TrainType {
/// use the quantizer as index in a kmeans training
QuantizerAsIndex,
Expand Down
Loading