pub struct ProductQuantizationConfig {
pub subquantizers: u32,
pub centroids_per_subquantizer: u16,
pub training_iterations: u16,
pub rerank_multiplier: u32,
pub seed: u64,
}Expand description
Deterministic offline product-quantization training and serving policy.
Fields§
§subquantizers: u32§centroids_per_subquantizer: u16§training_iterations: u16§rerank_multiplier: u32§seed: u64Trait Implementations§
Source§impl Clone for ProductQuantizationConfig
impl Clone for ProductQuantizationConfig
Source§fn clone(&self) -> ProductQuantizationConfig
fn clone(&self) -> ProductQuantizationConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProductQuantizationConfig
impl Debug for ProductQuantizationConfig
Source§impl Default for ProductQuantizationConfig
impl Default for ProductQuantizationConfig
impl Eq for ProductQuantizationConfig
impl StructuralPartialEq for ProductQuantizationConfig
Auto Trait Implementations§
impl Freeze for ProductQuantizationConfig
impl RefUnwindSafe for ProductQuantizationConfig
impl Send for ProductQuantizationConfig
impl Sync for ProductQuantizationConfig
impl Unpin for ProductQuantizationConfig
impl UnsafeUnpin for ProductQuantizationConfig
impl UnwindSafe for ProductQuantizationConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more